mirror of
https://github.com/jimathy/jim-payments.git
synced 2026-08-19 07:16:03 +01:00
qb-management export update
This commit is contained in:
@@ -17,9 +17,6 @@ QBCore.Functions.CreateCallback('jim-payments:ManageWrapper', function(source, c
|
|||||||
local result = nil
|
local result = nil
|
||||||
if type == "GetAccount" then result = exports["qb-management"]:GetAccount(account) end
|
if type == "GetAccount" then result = exports["qb-management"]:GetAccount(account) end
|
||||||
if type == "GetGangAccount" then result = exports["qb-management"]:GetGangAccount(account) end
|
if type == "GetGangAccount" then result = exports["qb-management"]:GetGangAccount(account) end
|
||||||
|
|
||||||
print(type.." "..account.." "..result)
|
|
||||||
|
|
||||||
cb(result)
|
cb(result)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|||||||
@@ -27,9 +27,9 @@ RegisterNetEvent('jim-payments:client:Charge', function(data)
|
|||||||
local dist = #(GetEntityCoords(GetPlayerPed(v)) - GetEntityCoords(PlayerPedId()))
|
local dist = #(GetEntityCoords(GetPlayerPed(v)) - GetEntityCoords(PlayerPedId()))
|
||||||
for i = 1, #onlineList do
|
for i = 1, #onlineList do
|
||||||
if onlineList[i].value == GetPlayerServerId(v) then
|
if onlineList[i].value == GetPlayerServerId(v) then
|
||||||
-- if v ~= PlayerId() then
|
if v ~= PlayerId() then
|
||||||
nearbyList[#nearbyList+1] = { value = onlineList[i].value, text = onlineList[i].text..' ('..math.floor(dist+0.05)..'m)' }
|
nearbyList[#nearbyList+1] = { value = onlineList[i].value, text = onlineList[i].text..' ('..math.floor(dist+0.05)..'m)' }
|
||||||
-- end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
dist = nil
|
dist = nil
|
||||||
|
|||||||
Reference in New Issue
Block a user