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: Lights (
/showthread.php?tid=494818)
Lights -
lsreskjn - 14.02.2014
Код:
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
Re: Lights -
Konstantinos - 14.02.2014
https://sampwiki.blast.hk/wiki/ManualVehicleEngineAndLights
If the above function is not used, then you cannot turn the lights on/off by the script.
Re: Lights -
lsreskjn - 14.02.2014
thanks, now its working but ai cant start the vehicle