/teleport with car
#1

Hi everyone i was wondering how to make a teleport command that tele u and the car u are in because
SetPlayerPos(...) just tele u and not the car

cuz i need a command /return to get off from my army base maked far in water

thx for help
Reply
#2

To teleport the vehicle that a player is in, you have to teleport the vehicle's position, and the player will go with it. The function you're looking for is "SetVehiclePos", to determine what vehicle the player is in use "GetPlayerVehicleID". A conditional to determine wether or not the player is in a vehicle in the first place is necessary.
Reply
#3

thx i will see if i need help and i will reply back if i need

EDIT;
well if u can make me an example it will be great cuz idk how to use GetPlayerVehicleID
is it GetPlayerVehicleID(playerid) ?
and SetVehiclePos is same as
SetPlayerPos ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)