Weapon stolen
Triggered after a player steals something from the actions menu, only if you use the default player search/rob, it won't work if you replaced it
RegisterNetEvent("jobs_creator:actions:weaponStolen", function(playerId, targetId, weaponName)
end)Parameters
Name
Data Type
Description
Example
-- This example for ESX will "delete" the stolen weapons (maybe useful for cops)
RegisterNetEvent("jobs_creator:actions:weaponStolen", function(playerId, targetId, weaponName)
local xPlayer = ESX.GetPlayerFromId(playerId)
xPlayer.removeWeapon(weaponName)
end)Last updated