No matter how i try, its not working...
function engine (player, command)
if isPedInVehicle(player) then
local vehicle = getPedOccupiedVehicle(player)
local state = getVehicleEngineState(vehicle)
setVehicleEngineState(vehicle, not state)
else return false end
end
addCommandHandler("engine", engine)