This commit is contained in:
Stitch
2023-11-08 13:30:54 -08:00
parent 16515eceea
commit 763dd613a4
2 changed files with 3 additions and 6 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

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