Engine & Lights with 2
#1

Hello.

Maybe some recommendations how to make it? I find this but it start only engine. I tried to create a script which start engine & lights but it won't work.

Be nice if someone show how to make lights with 2.. I'll be grateful.
Reply
#2

Let's use GetVehicleParamsEx for that. All vehicle params when they're spawned are values of: -1. So, basically you'll have to check vehicle state (store values) by above function and then do if statement to your engine if it's lower than '0'. If so, put the engine on (SetVehicleParamsEx) in different case (else) set vehicle params back to '0' (false). Check it at SA-MP wiki.
Reply
#3

Quote:
Originally Posted by Riddick94
Посмотреть сообщение
Let's use GetVehicleParamsEx for that. All vehicle params when they're spawned are values of: -1. So, basically you'll have to check vehicle state (store values) by above function and then do if statement to your engine if it's lower than '0'. If so, put the engine on (SetVehicleParamsEx) in different case (else) set vehicle params back to '0' (false). Check it at SA-MP wiki.
Alright.. I'll check SA-MP wiki. About engine - I works perfectly.. but lights just do not want start.
Reply
#4

Add "ManualVehicleEngineAndLights();" in "OnGameModeInit"
Reply
#5

Quote:
Originally Posted by MrTinder
Посмотреть сообщение
Add "ManualVehicleEngineAndLights();" in "OnGameModeInit"
Yeah.. I was completely forgotten. Thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)