Turning on vehicle lights
#1

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
Reply
#2

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


Forum Jump:


Users browsing this thread: 1 Guest(s)