local inZone1 = false
Citizen.CreateThread(function()
while true do
local sleep = 750
if pLoaded then
local playercoords = GetEntityCoords(PlayerPedId())
for val, coords in pairs(Config.USNGCoords) do
local distance = GetDistanceBetweenCoords(playercoords.x, playercoords.y, playercoords.z, coords.x, coords.y, coords.z, true)
local distance2 = Vdist(playercoords.x, playercoords.y, playercoords.z, coords.x, coords.y, coords.z)
if PlayerData.job ~= nil then
if PlayerData.job.name == "usng" then
if distance2 < 7 then
sleep = 5
DrawMarker(2, coords.x, coords.y, coords.z, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.4, 0.4, 0.2, 255, 255, 255, 255, 0, 0, 0, 1, 0, 0, 0)
if distance < 2 then
inZone1 = true
-- QBCore.Functions.DrawText3D(coords.x, coords.y, coords.z, '~r~[E]~s~ - Depo')
if IsControlJustPressed(0, 38) then
usngmenu()
end
else
inZone1 = false
end
if inZone1 then
exports['nUi']:DrawText("ÇIKACAK YAZI", "TUŞ", "İKON")
end
if not inZone1 then
exports['nUi']:HideText()
end
end
end
end
end
end
Citizen.Wait(sleep)
end
end)