Merge pull request #32 from UwUway/main

finish teh push
This commit is contained in:
Jim Shield
2023-11-08 21:43:57 +00:00
committed by GitHub
3 changed files with 4 additions and 7 deletions

View File

@@ -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)

View File

@@ -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

View File

@@ -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