[HELP] getting vehicle paintjob
#1

Hello. Is there a way to make in some command getting vehicle paintjob. Thanks

Like GetVehiclePaintjob or something.
Reply
#2

I don't think such feature exists.
But you can use OnVehiclePaintjob to save information about the vehicle and paintjob, and then get it later.
Reply
#3

How can I do that ? Thanks
Reply
#4

To save it, you need a saving system, like y_ini, MySQL, SQLite or such.
Here's just a simple server variable that'll hold paint job ID's of all vehicles.
pawn Код:
Paintjob[MAX_VEHICLES];
pawn Код:
public OnVehiclePaintJob(playerid, vehicleid, paintjobid)
{
    Paintjob[vehicleid] = paintjobid;
    return 1;
}
Then you can get paint jobs from the Paintjob variable.
Reply
#5

form wiki about OnVehiclePaintJob: This is called when a paintjob is viewed in modshops (before a player actually pays for it).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)