QBCore Compatibility

If you are using qb-core and qb-smallresources you should do the following steps

Step 1: Find

qb-smallresources/client/weapdraw.lua

or

qb-weapons/client/weapdraw.lua

Open this file with Notepad++ or VSCode.

Step 2: Add Function

Find an empty space and paste the code block 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 3: Find weapons:client:DrawWeapon Event

Find this weapons:client:DrawWeapon event in the file and replace it with the block of code below.

Additional

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

14KB
Open

Last updated