29 lines
		
	
	
	
		
			1,017 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
	
		
			1,017 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
---Checks if the player has the weapon item specified
 | 
						|
---@param source string
 | 
						|
---@param weaponHash integer
 | 
						|
---@return boolean hasWeapon
 | 
						|
function HasWeapon(source, weaponHash)
 | 
						|
    -- Always return true, as we already know the player has the weapon
 | 
						|
    return true
 | 
						|
end
 | 
						|
 | 
						|
---Removes the weapon from the player
 | 
						|
---@param source string
 | 
						|
---@param weaponHash integer
 | 
						|
---@param playerPed integer
 | 
						|
---@return boolean success
 | 
						|
function RemoveWeapon(source, weaponHash, playerPed)
 | 
						|
    RemoveWeaponFromPed(playerPed, weaponHash)
 | 
						|
    return true
 | 
						|
end
 | 
						|
 | 
						|
---Reduces durability for the weapon
 | 
						|
---@param source string
 | 
						|
---@param weaponHash integer
 | 
						|
---@param playerPed integer
 | 
						|
---@return boolean removedWeapon If the weapon was removed due to durability going below 0
 | 
						|
function ReduceDurabilityForWeapon(source, weaponHash, playerPed)
 | 
						|
    -- This is just a void function that does nothing, add some code below if you use an inventory that isn't already supported or change Config.Framework!
 | 
						|
 | 
						|
    return false
 | 
						|
end
 |