Item 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
Last updated
Was this helpful?
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
Last updated
Was this helpful?
Was this helpful?
RegisterNetEvent("jobs_creator:actions:itemStolen", function(playerId, targetId, itemName, itemQuantity)
end)
playerId
integer
The server ID of the player who stole the item
targetId
integer
The server ID of the victim who lost the item
itemName
string
Item name
itemQuantity
integer
Quantity stolen
-- This example for ESX will "delete" all stolen items
RegisterNetEvent("jobs_creator:actions:itemStolen", function(playerId, targetId, itemName, itemQuantity)
local xPlayer = ESX.GetPlayerFromId(playerId)
xPlayer.removeInventoryItem(itemName, itemQuantity)
end)