16.07.2016, 10:57
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.
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?
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(playerid, 0xFF0000FF, "ERROR: You're not in any vehicle!");
new dialog[1024], string[128];
format(string, sizeof string,"Vehicle owner: %s | Vehicle name: %s \n Color1 : %d, color2 : %d | Vehicle ID: %d ", VehicleInfo[vehicleid][owner],