NPC Vehicles
#1

I have this code for my npc to put in the vehicle TAXI
Код:
PutPlayerInVehicle(playerid,420,0);
But when i test it the npc drives another vehicle....(it was a bicycle)
Reply
#2

BUMP.... Please help me
Reply
#3

for exampel

new TaxiCar;

public OnGameModeInit()
{
ConnectNPC("Driver","Taxi");
TaxiCar = AddStaticVehicle(420,2044.8854,1473.2106,10.4494,1 81.3339,6,1); // Taxi
return 1;
}
Reply
#4

at PutPlayerInVehicle(playerid,>HERE< , 0);
">Here<" should be the vehicleid, not the modelid, means u have to create the vehicle first, then that vehicleid the npc has to be put in.
like The_Cobra said,
new VehicleNPC;

VehicleNPC = CreateVehicle(blablabla);

then the put player in vehicle should be:
PutPlayerInVehicle(playerid, VehicleNPC, 0);
Reply
#5

Quote:
Originally Posted by |)ЂΩ†{−}ЂR™ – Dare To Die
Код:
PutPlayerInVehicle(playerid,420,0);
Learn how to use PutPlayerInVehicle function - https://sampwiki.blast.hk/wiki/PutPlayerInVehicle

modelID isn't vehicleID.
Reply
#6

Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by |)ЂΩ†{−}ЂR™ – Dare To Die
Код:
PutPlayerInVehicle(playerid,420,0);
Learn how to use PutPlayerInVehicle function - https://sampwiki.blast.hk/wiki/PutPlayerInVehicle

modelID isn't vehicleID.
i eehh.. kinda said that already...
Reply
#7

Worked Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)