Last updated 2 years ago
Triggered when a player buys an item/weapon in shop marker
RegisterNetEvent("jobs_creator:shop:boughtItem", function(playerId, markerId, itemName, itemQuantity, totalPrice) end)
RegisterNetEvent("jobs_creator:shop:boughtItem", function(playerId, markerId, itemName, itemQuantity, totalPrice) print("Player ID :" .. playerId .. " bought x" .. itemQuantity .. " " .. itemName .. " from shop " .. markerId) end)
playerId
integer
Player's server ID
markerId
Marker ID
itemName
string
Item name or weapon name
itemQuantity
Bought quantity
totalPrice
Total paid price