Citizen.CreateThread(
function()
while true do
Citizen.Wait(3)
local ped = PlayerPedId()
for i = 1, #vehicleshopCoords do
local actualShop = vehicleshopCoords[i]
local dist = #(actualShop - GetEntityCoords(ped))
if dist <= 10.0 then
if dist <= 1.0 then
exports.tq_corev2:DrawText3D(actualShop.x, actualShop.y, actualShop.z,"[E] Araç Galerisi")
end
DrawMarker(2, actualShop.x, actualShop.y, actualShop.z - 0.2, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.25, 0.2, 0.1, 120, 10, 20, 100, 0, 0, 0, 1, 0, 0, 0)
if dist <= 2.4 then
if IsControlJustPressed(0, 38) then
OpenVehicleShop()
end
end
end
end
end
end)