Teleport vehicle to interior ?
#1

Hello !
Hello !

I want teleport a vehicle to hospital garage (interior) but my command can't move the vehicle :S

Why ? Have you got an example ?
Reply
#2

SetVehiclePos
-and-
LinkVehicleToInterior

pawn Код:
dcmd_hospital(playerid, params[])
{
     #pragma unused params
     SetVehiclePos(GetPlayerVehicleID(playerid), X, Y, Z);
     LinkVehicleToInterior(GetPlayerVehicleID(playerid), HOSPITAL_ID);
     SetPlayerPos(playerid, X, Y, Z); // Not sure if you need this, as if you move the vehicle, you should move the player
     
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)