Lights
#1

Код:
new engine, lights, alarm, doors, bonnet, boot, objective;
Код:
if(newkeys & KEY_YES) // Numpad 4
		{
		    new vehicleid = GetPlayerVehicleID(playerid);
  			GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
			SetVehicleParamsEx(vehicleid, engine, 1, alarm, doors, bonnet, boot, objective); // ONLY the engine param was changed (to 1)
			return 1;
    	}
It's not working, any ideas? It;s suppose to turn the lights ON
Reply
#2

https://sampwiki.blast.hk/wiki/ManualVehicleEngineAndLights

If the above function is not used, then you cannot turn the lights on/off by the script.
Reply
#3

thanks, now its working but ai cant start the vehicle
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)