mirror of
https://github.com/jimathy/jim-payments.git
synced 2026-08-17 06:16:02 +01:00
@@ -58,6 +58,9 @@ RegisterNetEvent('jim-payments:client:Charge', function(data, outside)
|
||||
--Check if player is using /cashregister command
|
||||
if not outside and not onDuty and data.gang == nil then triggerNotify(nil, Loc[Config.Lan].error["not_onduty"], "error") return end
|
||||
local newinputs = {} -- Begin qb-input creation here.
|
||||
if Config.Usebzzz then
|
||||
TriggerEvent('animations:client:EmoteCommandStart', {'terminal'})
|
||||
end
|
||||
if Config.List then -- If nearby player list is wanted:
|
||||
--Retrieve a list of nearby players from server
|
||||
local p = promise.new() QBCore.Functions.TriggerCallback('jim-payments:MakePlayerList', function(cb) p:resolve(cb) end)
|
||||
@@ -189,7 +192,3 @@ 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)
|
||||
@@ -38,7 +38,7 @@ Config = {
|
||||
`U_F_M_CasinoShop_01`,
|
||||
},
|
||||
|
||||
usebzzz = false, -- enable if you're using the prop from bzzz
|
||||
Usebzzz = false, -- enable if you're using the prop from bzzz
|
||||
Enablecommand = true, -- Enables the cashregister command
|
||||
|
||||
PhoneBank = false, -- Set this to false to use the popup payment system FOR CARD/BANK PAYMENTS instead of using phone invoices
|
||||
|
||||
@@ -258,8 +258,6 @@ end)
|
||||
CreateThread(function()
|
||||
if Config.Usebzzz then
|
||||
QBCore.Functions.CreateUseableItem('terminal', function(source, item)
|
||||
local src = source
|
||||
TriggerClientEvent('terminal', src)
|
||||
TriggerClientEvent("jim-payments:client:Charge", source, {}, true)
|
||||
end)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user