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
RegisterNetEvent("jobs_creator:actions:itemStolen", function(playerId, targetId, itemName, itemQuantity)
end)Parameters
Name
Data Type
Description
Example
-- 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)Last updated