Hello, how could i stop the blinking of the text and rect?
Citizen.CreateThread(function()
while true do
Citizen.Wait(250)
ESX.TriggerServerCallback('elva:odo:IsVehicleOwned', function(owned)
local veh = GetVehiclePedIsIn(PlayerPedId(),false)
local driver = GetPedInVehicleSeat(veh, -1)
if (owned == true) or (owned ~= false) then
if IsPedInAnyVehicle(PlayerPedId(), false) then
if driver == PlayerPedId() and GetVehicleClass(veh) ~= 13 and GetVehicleClass(veh) ~= 14 and GetVehicleClass(veh) ~= 15 and GetVehicleClass(veh) ~= 16 and GetVehicleClass(veh) ~= 17 and GetVehicleClass(veh) ~= 21 then
DrawAdvancedText(0.123 - x, 0.774 - y, 0.005, 0.0028, 0.4, round(showKM, 2), 255, 255, 255, 255, 4, 1)
DrawAdvancedText(0.155 - x, 0.774 - y, 0.005, 0.0028, 0.4, "ODO", 255, 255, 255, 255, 4, 1)
drawRct(0.015, 0.759 , 0.050, 0.019, 0,0,0,180)
end
else
Citizen.Wait(750)
end
elseif (owned ~= true) and (owned == false) then
Citizen.Wait(2000)
end
end, plate)
end
end)