How come this doesn’t work?
Basically if I have something in front me it works (not nil) but when I move away from the vehicle in front of me the other section of the code doesn’t work =/
if boatTarget ~= nil then
temp = GetVehicleNumberPlateText(boatTarget)
current = temp
drawTxtPolice(current,0,1,0.878,0.53,0.5,255,255,255,255)
drawTxtLast(old,0,1,0.878,0.58,0.5,255,255,255,255)
else
drawTxtPolice('~g~None ~s~available',0,1,0.86,0.53,0.5,255,255,255,255)
drawTxtLast(old,0,1,0.878,0.58,0.5,255,255,255,255)
end
old = current