Posts: 19
Threads: 14
Joined: Jan 2010
Reputation:
0
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;
}
Posts: 198
Threads: 3
Joined: Nov 2008
Reputation:
0
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);