16.06.2018, 01:49
Hi everyone, I am making a speedometer system, and I would like to get the amount of nitro that is in the vehicle, I do not know where to start and I looked but I did not find anything related here in the forum.
public OnVehicleMod(playerid, vehicleid, componentid)
{
new componentType = GetVehicleComponentType(componentid);
if(componentType != -1)
{
new clientMessage[41];
format(clientMessage, sizeof(clientMessage), "You have modified your vehicle on slot %i", componentType);
SendClientMessage(playerid, 0xFFFFFFFF, clientMessage);
}
else
{
SendClientMessage(playerid, 0xFF0000FF, "The component is invalid.");
}
return 1;
}