OX Inventory

If you use ox inventory, you can learn how to harmonize your inventory in this explanation.

Step 1: Find ox_inventory/client.lua

After opening client.lua with the help of Notepad++ or VSCode, find an empty space and paste the codes below.

rmThrow = function(weapon)
	if GetResourceState("rm_throw") and GetResourceState("rm_throw") == "started" then
		if weapon == "item" and exports["rm_throw"]:useItem() then
			return false
		end
		
		if weapon == GetHashKey("WEAPON_SNOWBALL") then
			return false
		end

		if exports["rm_throw"]:useItem() then
			return false
		end
	end

	if GetResourceState("rm_weaponv") and GetResourceState("rm_weaponv") == "started" then
		return weaponState
	end

	return true
end

Step 2: Find ox_inventory:setPlayerInventory Event

You will find the code block below in the last parts of this event.

Step 3: Replace the code block you found

Edit the code block in step 2 as follows.

Additional

If you cannot make this change correctly, you can download the file below and replace it with ox_inventory/client.lua.

52KB
Open

Last updated