Events
Bank:createInvoice(src, {
to = PlayerName, -- {this is PLAYERS name}
toIdentifier = target.identifier, -- {the Target Players ID}
from = OfficerName, -- {this is YOUR name}
fromIdentifier = xPlayer.identifier, -- {YOUR ID}
amount = amount, -- {Amount sent from Client}
message = reason, --{ Reason Sent from Client}
receiverAccountIdentifier = xPlayer.identifier {-- if you dont want personal rewards for tickets put this as { Job } and it will send the money to the job not player!}
})local info = {
amount = amount,
PlayerName = PlayerName,
OfficerName = OfficerName,
date = date
}
if Inventory:CanCarryItem(src, 'ticket', 1) then -- if officer can carry ticket
Inventory:AddItem(src, 'ticket', 1, info ) -- add item
else -- else if not can carry
Inventory:AddItem('police_tickets', 'ticket', 1, info) -- add item to storage
end
Inventory:AddItem('police_tickets', 'ticket', 1, info) -- ALWAYS add a copy to storageLast updated