Is it possible to get a NPC in a passenger seat of a vehicle?
#1

Is it possible to get a NPC in a passenger seat of a vehicle?

Would I have to do any recording? If yes, what recording type? https://sampwiki.blast.hk/wiki/Record_types

Has anyone done this before?
Reply
#2

Record him then put him in the vehicle as a passenger? Or record him as a passenger
Reply
#3

Quote:
Originally Posted by [03
Garsino ]
Record him then put him in the vehicle as a passenger? Or record him as a passenger
I tried that, I may have done it wrong. Has anyone ever managed to get a NPC into a passenger seat of a vehicle?
Reply
#4

sorry to bump an old thread but i really want to know if anybody has been able to do this, because i took a stab at it and have had no success i tried recording with them as a passenger and on foot neither seem to work :/
Reply
#5

Quote:
Originally Posted by Beaver07
sorry to bump an old thread but i really want to know if anybody has been able to do this, because i took a stab at it and have had no success i tried recording with them as a passenger and on foot neither seem to work :/
PutPlayerInVehicle...
Reply
#6

wow lol you think that i am not trying that? ... >.<

Code:
if (OnDuty[playerid] == 998 && TaxiTest == 1 && IsPlayerInAnyVehicle(playerid))
	{
	  new Float:x,Float:y,Float:z;
	  new chat[128],playername[128];
	  GetPlayerName(playerid, playername, sizeof(playername));
	  	GetPlayerPos(playerid,x,y,z);
		SetPlayerLookAt(TaxiBotID,x,y);
		format(chat, sizeof(chat), "Hello %s",playername);
		SetPlayerChatBubble(TaxiBotID,chat,COLOR_WHITE,35.0,4000);
	  //ApplyAnimation(TaxiBotID,"PED","WALK_civi",4.1,1,1,1,1,1);
	  ApplyAnimation(TaxiBotID, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0); // Wave
	  //SetTimerEx("PutBotInTaxi",2000,0,"i",TaxiBotID,GetPlayerVehicleID(playerid));
	  PutPlayerInVehicle(TaxiBotID, TaxiID, 2);
	}
not putting them in the vehicle
Reply
#7

?
Reply
#8

Code:
PutPlayerInVehicle(npcid, vehicleid, seat);
seat = passenger (0 (driver), 1 (co-passenger), 2 and 3 (passenger's))
Reply
#9

Quote:
Originally Posted by © ŦĥЗ ǺĽẽẌṖŎịŚỘń
Code:
PutPlayerInVehicle(npcid, vehicleid, seat);
seat = passenger (0 (driver), 1 (co-passenger), 2 and 3 (passenger's))
did you not read my post? ... if you did you will notice i have used PutPlayerInVehicle.. but it will not put bots as a passenger? anybody know why?



Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)