CjSam Posted January 8, 2021 Share Posted January 8, 2021 Mi consulta es la siguiente: cómo lograr q todos los autos aparezcan apagados? Y si, ya probé el "setVehicleEngineState " y no apaga el auto, siempre queda encendido. Link to comment
error403 ツ Posted February 8, 2021 Share Posted February 8, 2021 (edited) Prueba con esto! function Apagar_Vehiculos ( ) local Vehiculos = getElementsByType ( "vehicle" ) for _, vehicle in pairs(Vehiculos) do setVehicleEngineState(vehicle, false) end end addEventHandler ( "onResourceStart", getRootElement(), Apagar_Vehiculos ) Edited February 8, 2021 by error403 ツ 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