Vehicle Id ?
#1

Hey, I know its vehicle models, that we use to spawn vehicles. But vehicles also have a ID ingame, thats not changing. That is useful to have when you want to lock some vehicles of that modelid. Does somone have a command that can get the current ID of car Im in?
Reply
#2

Sorry for the dobule posting - Did refresh you can also remove this message. (Mode)
Reply
#3

pawn Код:
if(strcmp(cmd,"/mycar",true))
{
  if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,color,"You msut be inside a vehicle.");
  format(string,sizeof(string),"%d",GetPlayerVehicleID(playerid));
  SendClientMessage(playerid,color,string);
  return 1;
}
Reply
#4

Quote:
Originally Posted by MenaceX^
pawn Код:
if(strcmp(cmd,"/mycar",true))
{
  if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,color,"You msut be inside a vehicle.");
  format(string,sizeof(string),"%d",GetPlayerVehicleID(playerid));
  SendClientMessage(playerid,color,string);
  return 1;
}
Thanks, I try it out
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)