SA-MP Forums Archive
Turning on vehicle 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: Turning on vehicle lights (/showthread.php?tid=485581)



Turning on vehicle lights - sim_sima - 04.01.2014

Hello there. I am trying to make a test command for turning on the lights of the vehicle you are currently in. I can not get it to work. Here is how it looks like:
pawn Код:
if (strcmp("/lights", cmdtext, true, 10) == 0)
    {
        new engine, lights, alarm, doors, bonnet, boot, objective;
        GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
        SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, 1, alarm, doors, bonnet, boot, objective);
        return 1;
    }
Hope someone can help me


Re: Turning on vehicle lights - Konstantinos - 04.01.2014

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