Can you make a function that informs that the car is on the lift or not so it can be used in the following export
--export for is vehicle on lift
function IsOnLift()
local vehicle = GetClosestVehicle(coords.x, coords.y, coords.z, 5.0, 0, 71)
local plate = GetVehicleNumberPlateText(vehicle):gsub("^%s*(.-)%s*$", "%1")
if vehOnLift[plate] ~= nil then
IsOnLift = true
else
IsOnLift = false
end
return IsOnLift
end
--export end
It will work work if there is already lifts in the specific possition? ( like premade lift at mechanic shops ) or the script works very different as i am thinking?
I tested this script out. Lucky i could edit target line since qtarget i am using there was no stop button. I also run it in debug mode and use /lclear but restarting script will crash my game even when i am miles away from object.
Also looks like it spawn double, Even when i had nothing there.
Are you using the /lclear on an empty test server? It’s debug only and not supposed to be used on a live server.
Also are these issues happening if you just start the server and don’t restart the script?