mirror of
https://github.com/jimathy/jim-payments.git
synced 2026-08-17 14:26:02 +01:00
add support for bzzs terminal and disabling the command in config
This commit is contained in:
@@ -95,6 +95,9 @@ RegisterNetEvent('jim-payments:client:Charge', function(data, outside)
|
||||
if not dialog.citizen or not dialog.price then return end
|
||||
TriggerServerEvent('jim-payments:server:Charge', dialog.citizen, dialog.price, dialog.billtype, data.img, outside, gang)
|
||||
end
|
||||
if config.Usebzzz then
|
||||
ExecuteCommand("e c")
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterNetEvent('jim-payments:client:PolCharge', function()
|
||||
@@ -186,3 +189,7 @@ AddEventHandler('onResourceStop', function(r) if r ~= GetCurrentResourceName() t
|
||||
for i = 1, #Till do DeleteEntity(Till[i]) end
|
||||
unloadModel(GetEntityModel(BankPed)) DeletePed(BankPed)
|
||||
end)
|
||||
|
||||
RegisterNetEvent('terminal', function()
|
||||
TriggerEvent('animations:client:EmoteCommandStart', {'terminal'})
|
||||
end)
|
||||
Reference in New Issue
Block a user