Vehicle Are Not Spawn
#1

When I reloading the FS are spawn vehicle, but when I dont reloading FS, are not spawn vehicle.
My code:

pawn Код:
new ModCar[1];
pawn Код:
ModCar[0] = CreateVehicle(562, 2505, -1670, 13, 0, 6, 1, 50000);
pawn Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
    if(vehicleid == ModCar[0])
    {
        AddVehicleComponent(ModCar[0], 1034);
        AddVehicleComponent(ModCar[0], 1035);
        AddVehicleComponent(ModCar[0], 1036);
        AddVehicleComponent(ModCar[0], 1037);
        AddVehicleComponent(ModCar[0], 1038);
        AddVehicleComponent(ModCar[0], 1039);
        AddVehicleComponent(ModCar[0], 1040);
        AddVehicleComponent(ModCar[0], 1041);
        AddVehicleComponent(ModCar[0], 1010); // 1034-1041
        ChangeVehiclePaintjob(ModCar[0], 2);
        for(new i; i != MAX_PLAYERS; i++)
        {
      SetVehicleParamsForPlayer(ModCar[0], i, 0, 1);
        }
    }
}
Not: I use this in NPC filterscript.
Reply
#2

There is no need to re-apply car mods or change paintjobs in OnVehicleStreamIn as it's done by the server.
Reply
#3

Quote:
Originally Posted by dugi
There is no need to re-apply car mods in OnVehicleStreamIn as it's done by the server.
What must I do?
Reply
#4

Quote:
Originally Posted by dugi
There is no need to re-apply car mods or change paintjobs in OnVehicleStreamIn as it's done by the server.
for quad its buged and it doesnt get readded but my post in the bug topic is gone

Edit:
Quote:
Originally Posted by _TeRmiNaToR_
What must I do?
Quote:

Not: I use this in NPC filterscript.

this functions doesnt work in NPC modes
Reply
#5

Quote:
Originally Posted by Doerfler
Quote:
Originally Posted by dugi
There is no need to re-apply car mods or change paintjobs in OnVehicleStreamIn as it's done by the server.
for quad its buged and it doesnt get readded but my post in the bug topic is gone

Edit:
Quote:
Originally Posted by _TeRmiNaToR_
What must I do?
Quote:

Not: I use this in NPC filterscript.

this functions doesnt work in NPC modes
No, you could me misunderstanding, I use this in normal FS but I make it for NPCs. in Filterscript folder.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)