Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
local playerPed = GetPlayerPed(-1)
local playerVeh = GetVehiclePedIsIn(playerPed, false)
if (GetPedInVehicleSeat(playerVeh, -1) == playerPed) then
DisplayRadar(true)
else
DisplayRadar(false)
end
end
end)
This is with Seat-Check. The Minimap only shows when you are the driver.
awesome this seems to be working just like i needed but when i load into my server it still shows and works when i restart the script, how would i go on about having it work without doing that everytime?