Add files via upload

This commit is contained in:
Jim Shield
2022-07-28 18:34:17 +01:00
committed by GitHub
parent df640a1a08
commit d71f3d29ed
2 changed files with 14 additions and 12 deletions

View File

@@ -136,6 +136,7 @@ CreateThread(function()
if Config.Peds then
local i = math.random(1, #Config.PedPool)
loadModel(Config.PedPool[i])
if not Config.Gabz then CreateModelHide(vector3(tonumber(b.x), tonumber(b.y), tonumber(b.z)), 1.0, `v_corp_bk_chair3`, true) end
if Peds["jimbank"..k..l] == nil then Peds["jimbank"..k..l] = CreatePed(0, Config.PedPool[i], vector3(tonumber(b.x), tonumber(b.y), tonumber(b.z)-1.03), b[4], false, false) end
if Config.Debug then print("^5Debug^7: ^6Ped ^2Created for location^7: '^6"..k..l.."^7'") end
end
@@ -323,7 +324,7 @@ RegisterNetEvent('jim-payments:client:ATM:give', function()
local dist = #(GetEntityCoords(GetPlayerPed(v)) - GetEntityCoords(PlayerPedId()))
for i = 1, #onlineList do
if onlineList[i].value == GetPlayerServerId(v) then
if v ~= PlayerId() then
if v ~= PlayerId() or Config.Debug then
nearbyList[#nearbyList+1] = { value = onlineList[i].value, text = onlineList[i].text..' ('..math.floor(dist+0.05)..'m)' }
end
end

View File

@@ -40,6 +40,7 @@ CreateThread(function()
if Config.Peds then
local i = math.random(1, #Config.PedPool)
loadModel(Config.PedPool[i])
if not Config.Gabz then CreateModelHide(vector3(Config.CashInLocation.x, Config.CashInLocation.y, Config.CashInLocation.z), 1.0, `v_corp_bk_chair3`, true) end
if not BankPed then BankPed = CreatePed(0, Config.PedPool[i], vector3(Config.CashInLocation.x, Config.CashInLocation.y, Config.CashInLocation.z-1), Config.CashInLocation[4], false, false) end
if Config.Debug then print("^5Debug^7: ^6Ped ^2Created for location^7: '^6Ticket Trade^7'") end
end