GetVehicleModel help.
#1

Hello, today I was scripting, but I faced a problem.
the problem is I don't know how to get player's vehicle id, to get VehicleModel.
PHP код:
CMD:blabla(playerid,params[])
{
  if(!
IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid0xFF0000FF"ERROR: You're not in any vehicle!");
     new 
dialog[1024], string[128];
     
format(stringsizeof string,"Vehicle owner: %s | Vehicle name: %s \n Color1 : %d, color2 : %d | Vehicle ID: %d "VehicleInfo[vehicleid][owner], 
I couldn't do more, because second const, is related to car model , and I couldn't get player's vehicle ID. Can some one help me please?
Reply


Messages In This Thread
GetVehicleModel help. - by Farzam - 16.07.2016, 10:57
Re: GetVehicleModel help. - by Konstantinos - 16.07.2016, 11:03
Re: GetVehicleModel help. - by Farzam - 16.07.2016, 12:04
Re: GetVehicleModel help. - by Luicy. - 16.07.2016, 12:08
Re: GetVehicleModel help. - by Konstantinos - 16.07.2016, 12:12

Forum Jump:


Users browsing this thread: 1 Guest(s)