SA-MP Forums Archive
Car lights - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Car lights (/showthread.php?tid=605181)



Car lights - CSLangdale - 15.04.2016

How do i make it so i can turn car lights on in daytime?


Re: Car lights - BiosMarcel - 15.04.2016

Did u even put any effort into finding it out??
Just ****** and u will know it.
This is not the we script for you section....


Re: Car lights - WingedFrostWolf - 15.04.2016

Place this OnGamemodeInit to enable manual control of the engine and lights.
Код:
ManualVehicleEngineAndLights();
Then place this in a command.
Код:
{
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(GetPlayerVehicleID(playerid), VEHICLE_PARAMS_ON, lights, alarm, doors, bonnet, boot, objective); 
}
https://sampwiki.blast.hk/wiki/ManualVe...ngineAndLights
https://sampwiki.blast.hk/wiki/GetVehicleParamsEx
https://sampwiki.blast.hk/wiki/SetVehicleParamsEx