Artyom888 Posted February 17, 2020 Share Posted February 17, 2020 (edited) Hi, I use this code to create a vehicle with a ped inside. When i use setVehicleEngineState that the car that I created does not turn off function start () local playerPosition = Vector3( getElementPosition( localPlayer ) ) local theVehicle = createVehicle( 401, playerPosition ) local thePed = createPed( 0, playerPosition ) warpPedIntoVehicle( thePed, theVehicle ) setVehicleEngineState(theVehicle, false) end addCommandHandler ( "create", start ) Edited February 17, 2020 by Artyom888 Link to comment
#\_oskar_/# Posted February 17, 2020 Share Posted February 17, 2020 setTimer ( setVehicleEngineState, 100, 1 ,theVehicle, false) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now