Framework protections
Description
Framework Anti weapons protection resource can be used only if your weapons are based on your inventory system. In case you use the weapon wheel for your weapons, this resource will not be useful for you. You can customize your functions for checking the weapon in player's inventory and punishment in the config fileConfiguration
Config.HasWeaponInInventory function
Example:
Config.HasWeaponInInventory = function(source, weaponname)
local user_id = vRP.getUserId{source}
if vRP.getInventoryItemAmount{user_id, weaponname} > 0 then -- determine if the number of the weapon item is more than 0
return true
else
return false
end
endConfig.Ban function
Last updated