SA-MP Forums Archive
[Include] [INC] Get vehicle name - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC] Get vehicle name (/showthread.php?tid=106731)



[INC] Get vehicle name - iron_war_lord - 05.11.2009

[INC] GetVehicleFriendlyName
| Source: Pastebin | Download .zip: Mediafire |
About
This include helps those who want the car's name. Also known as the car's friendly name.

How to use
Код:
native GetVehicleFriendlyName(vehicleid);
Include
Код:
#include <ZGetVehName>
Example Code
Код:
public OnPlayerStateChange(playerid,newstate,oldstate)
{
  if(newstate == PLAYER_STATE_DRIVER)
  {
    TextDrawSetString(VehicleName, GetFriendlyVehicleName(GetPlayerVehicleID(playerid)))
  }
}



Re: [INC] Get vehicle name - Zeromanster - 06.11.2009

Nice include, i'll be using this. Thanks.


Re: [INC] Get vehicle name - emre.aydin - 06.03.2012

thank you, i'll be using this awesome include everywhere in my scripts.


Re: [INC] Get vehicle name - Sam5513 - 18.11.2012

Perfect include. Thank you so much


Re: [INC] Get vehicle name - Plovix - 18.11.2012

Very useful for all kind of the gamemodes!


Re: [INC] Get vehicle name - im - 18.11.2012

This is a really weird forum. Awesome stuff get no feedback at all and basic functions get replies and rep+.. Probably because most people don't really know anything about coding..

Anyway, nice include!! Keep up the good work!! I will use it on all my bugged GF edits.


Re: [INC] Get vehicle name - jpeg - 19.11.2012

Very Good.


Re: [INC] Get vehicle name - Niko_boy - 19.11.2012

..
Not even a include just a array and a code snippet :O
nothing really to have it as a include , just usefull function may be


Re: [INC] Get vehicle name - Jochemd - 19.11.2012

Wouldn't it be better to retrieve the name from model ID? Just in my opinion; might save some memory when you already know the model ID.


Re: [INC] Get vehicle name - AMEENAMEEN - 24.11.2012

Quote:
Originally Posted by im
Посмотреть сообщение
This is a really weird forum. Awesome stuff get no feedback at all and basic functions get replies and rep+.. Probably because most people don't really know anything about coding..

Anyway, nice include!! Keep up the good work!! I will use it on all my bugged GF edits.
Back in 2009 there was no REP system