Vehicle stuck in the air on SetVehiclePos
#1

Pretty simple, when I do /getcar the car is teleported successfully but it just stucks in the air until I jump at it, touch it. I've searched some old threads and I tried to start the vehicle engine on-off on teleport since someone said its a fix for it but its doing nothing. Any tips?

PHP Code:
CMD:getcar(playeridparams[]) {
  static 
vid;
  static 
Float:xFloat:yFloat:z;
  if(
admin1) return EmTag(playeridYOU_HAVE_NO_PERMISSION);
  if(
sscanf(params"i"vid)) return UsageTag(playerid"/getcar[ID]");
  if(!
IsValidVehicle(vid)) return EmTag(playerid"The specified vehicle ID is invalid!");
  
GetPlayerPos(playeridFloat:xFloat:yFloat:z);
  
SetVehiclePos(vidFloat:x+2Float:y+2Float:z);
  return 
1;

Reply


Messages In This Thread
Vehicle stuck in the air on SetVehiclePos - by polygxn - 13.03.2019, 21:02
Re: Vehicle stuck in the air on SetVehiclePos - by v1k1nG - 13.03.2019, 21:05
Re: Vehicle stuck in the air on SetVehiclePos - by polygxn - 13.03.2019, 21:07
Re: Vehicle stuck in the air on SetVehiclePos - by v1k1nG - 13.03.2019, 22:34
Re: Vehicle stuck in the air on SetVehiclePos - by polygxn - 13.03.2019, 22:43
Re: Vehicle stuck in the air on SetVehiclePos - by Kaliber - 14.03.2019, 08:28
Re: Vehicle stuck in the air on SetVehiclePos - by raydx - 14.03.2019, 13:49
Re: Vehicle stuck in the air on SetVehiclePos - by antixgaming - 14.03.2019, 14:43

Forum Jump:


Users browsing this thread: 1 Guest(s)