Lights are bugged!
#2

Try and use this command and let me know if it fixes it?

Code:
CMD:carlights(playerid, params[])
{
    if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return 1;
    new variables[7], vehicleid = GetPlayerVehicleID(playerid);
    GetVehicleParamsEx(vehicleid, variables[0], variables[1], variables[2], variables[3], variables[4], variables[5], variables[6]);
    if(variables[1] != VEHICLE_PARAMS_ON)
    {
        SetVehicleParamsEx(vehicleid, variables[0], VEHICLE_PARAMS_ON, variables[2], variables[3], variables[4], variables[5], variables[6]);
    }
    else
    {
        SetVehicleParamsEx(vehicleid, variables[0], VEHICLE_PARAMS_OFF, variables[2], variables[3], variables[4], variables[5], variables[6]);
    }
    return 1;
}
Reply


Messages In This Thread
Lights are bugged! - by Eugene. - 15.10.2013, 12:50
Re: Lights are bugged! - by Blademaster680 - 15.10.2013, 14:01
Re: Lights are bugged! - by Mattakil - 15.10.2013, 14:07
Re: Lights are bugged! - by Unri - 15.10.2013, 14:08
Re: Lights are bugged! - by thomaswilliams - 15.10.2013, 19:30
Re: Lights are bugged! - by Mattakil - 15.10.2013, 23:29
Re: Lights are bugged! - by Ayumi - 15.10.2013, 23:49
Re: Lights are bugged! - by Eugene. - 16.10.2013, 05:11

Forum Jump:


Users browsing this thread: 3 Guest(s)