AddVehicleComponent not showing after respawn [HELP]
#2

Add this code in your script.
Код:
public OnVehicleMod(playerid, vehicleid, componentid)
{
    if(vehicleid == PlayerInfo[playerid][pVeh])
        PlayerInfo[playerid][pVehMod][GetVehicleComponentType(componentid)] = componentid;
    if(vehicleid == PlayerInfo[playerid][pVVeh])
        PlayerInfo[playerid][pVVehMod][GetVehicleComponentType(componentid)] = componentid;
    if(vehicleid == PlayerInfo[playerid][pBVeh])
    	PlayerInfo[playerid][pBVehMod][GetVehicleComponentType(componentid)] = componentid;
    
	return 1;
}
That code will assign the componentid of the mods into vehicle mods variable
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)