Start working on billPlayer() function

The intention here is to try and add multiple "billing" script functions, so the user can pre-set it for scripts that use `jim_bridge`

Currently only handles `jim-payments`
This commit is contained in:
Jim Shield
2025-06-07 18:14:53 +01:00
parent 5db9e88bb9
commit 2b7a1c2e6d

View File

@@ -153,6 +153,18 @@ end
-- Economy Event Handlers
-------------------------------------------------------------
--- BillPlayer
function billPlayer(data)
if not Config.System.Billing or Config.System.Billing == "jim" then
TriggerEvent("jim-payments:client:Charge", {
job = data.job,
gang = data.gang,
coords = data.coords.xyz,
img = data.img
})
end
end
--- Charges a player by removing money from their account.
---
--- @param cost number The amount to charge.