Jump to content
  • 0

Cum fac fuel infinit la o masina



2 answers to this question

Recommended Posts

[pawn]public OnVehicleSpawn(vehicleid)


AVehicleData[vehicleid][MafiaLoad] = false;

if (AVehicleData[vehicleid][Owned] == true)

AVehicleData[vehicleid][Fuel] = MaxFuel;

if (AVehicleData[vehicleid][PaintJob] != 0)


ChangeVehiclePaintjob(vehicleid, AVehicleData[vehicleid][PaintJob] - 1);


ChangeVehicleColor(vehicleid, AVehicleData[vehicleid][Color1], AVehicleData[vehicleid][Color2]);

for (new i; i < 14; i++)


        RemoveVehicleComponent(vehicleid, GetVehicleComponentInSlot(vehicleid, i));

if (AVehicleData[vehicleid][Components] != 0)

        AddVehicleComponent(vehicleid, AVehicleData[vehicleid][Components]); // Add the component to the vehicle


    return 1;


Link to comment
Share on other sites

This topic is now closed to further replies.
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.