mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-17 05:56:02 +01:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user