[Include] [INC] Get vehicle name
#1

[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)))
  }
}
Reply
#2

Nice include, i'll be using this. Thanks.
Reply
#3

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

Perfect include. Thank you so much
Reply
#5

Very useful for all kind of the gamemodes!
Reply
#6

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.
Reply
#7

Very Good.
Reply
#8

..
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
Reply
#9

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.
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)