Hi Onset Comunity
is there a way to disable/interupt the sound (of the engine) when a player enters a vehicle?
Background:
I'v wrote a script which disabled the engine imidently (after entering as a driver). The player have to start the engine manually.
After entering the car, the car can't drive (as aspected because the stopped engine) but the sound of a starting engine is played.
Maybe there is a better solution to stop an engine after entering (?)
Sry for my english, I'm from germany (greetings )
is there a way to disable/interupt the sound (of the engine) when a player enters a vehicle?
Background:
I'v wrote a script which disabled the engine imidently (after entering as a driver). The player have to start the engine manually.
After entering the car, the car can't drive (as aspected because the stopped engine) but the sound of a starting engine is played.
Maybe there is a better solution to stop an engine after entering (?)
Code:
AddEvent("OnPlayerEnterVehicle", function(player, vehicle, seat) Delay(500,function() if(seat == 1) then StopVehicleEngine(vehicle) end end) end)
Sry for my english, I'm from germany (greetings )
Comment