No, Vehicle ID is the vehicle already put in your script, I mean look this
pawn Код:
AddStaticVehicleEx(428, 1544.2725830078, -1684.3175048828, 5.8806247711182, 90, 0, 1,300); //Securicar 1 - This is your first vehicle in script so his vehicle ID would be 1
AddStaticVehicleEx(428, 1544.2365722656, -1676.2415771484, 5.8806247711182, 90, 0, 1,300); //Securicar 2
AddStaticVehicleEx(428, 1544.1998291016, -1667.8420410156, 5.8806247711182, 90, 0, 1,300); //Securicar 3
AddStaticVehicleEx(428, 1544.0983886719, -1659.0190429688, 5.8806247711182, 90, 0, 1,300); //Securicar 4
You can use vehicle ID in some commands, here take a look
pawn Код:
CMD:rentmoto(playerid, params[])
{
new string[128];
if(IsPlayerConnected(playerid))
{
if(GetPlayerVehicleID(playerid) >= 193 && GetPlayerVehicleID(playerid) <= 217) // These numbers are for the vehicles, so the vehicles between number 193 and 217 are rentbikes (This is from my script)
// You must calculate those numbers by yourself
{
new hirefee = HireCost(GetPlayerVehicleID(playerid));
if (GetPlayerMoney(playerid) < SBizzInfo[0][sbEntranceCost])
{
SendClientMessage(playerid, COLOR_GRAD2, "Nemate dovoljno novaca !");
return 1;
}
if(HireCar[playerid] != 299)
{
gCarLock[HireCar[playerid]] = 0;
UnLockCar(HireCar[playerid]);
SendClientMessage(playerid, COLOR_GREY, "Vi vec iznajmljujete auto / motor !");
return 1;
}
foreach (Player, i)
{
if(HireCar[i] == GetPlayerVehicleID(playerid))
{
SendClientMessage(playerid, COLOR_GREY, "Netko vec iznajmljuje ovaj motor !");
return 1;
}
}
GivePlayerCash(playerid,-SBizzInfo[0][sbEntranceCost]);
SBizzInfo[0][sbTill] += SBizzInfo[0][sbEntranceCost];
ExtortionSBiz(0, SBizzInfo[0][sbEntranceCost]);
SBizzInfo[0][sbProducts]--;
HireCar[playerid] = GetPlayerVehicleID(playerid);
OnPropUpdate();
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "Unajmili ste motor, sada samo vi mozete voziti ovaj motor.",hirefee);
SendClientMessage(playerid, YELLOW, string);
TogglePlayerControllable(playerid, 1);
gEngine[GetPlayerVehicleID(playerid)] = 1;
GameTextForPlayer(playerid, string, 5000, 3);
}
}
return 1;
}
Reply if I helped you. P.S. I don't know english very well so I couldn't help you a lot 'cuz I don't know how to express myself