AddStaticVehicle - paintjobs, body parties...
#1

I've forgot how to make it, and what's the ID of that paintjob and for example some ID's of the sultan body parties, such as spoiler, etc etc?
E.g:
pawn Код:
AddStaticVehicle(522,2073.6125,-1867.1863,13.1117,272.6280,0,0);
522 is an nrg vehicle, but this is just an example, so help me please xD
Reply
#2

https://sampwiki.blast.hk/wiki/ChangeVehiclePaintjob
Reply
#3

I don't understand this so good.
Let me tell you:
i want this car with this paintjob

Код:
Paintjob ID: 0
Vehicle's ownership: Camper
Color: Default (without custom color)
Can add in Single Player: No
Vehicle ID: 483

Can you tell me how?
Reply
#4

Can someone help me?
Reply
#5

https://sampwiki.blast.hk/wiki/Paintjob
https://sampwiki.blast.hk/wiki/ChangeVehiclePaintjob
Reply
#6

Damn, I told you, I do not understand this. :S I need help, if you would help me with this, I will see and will know for the future.
Reply
#7

ok , this is small example
pawn Код:
CMD:car(playerid,params[])
{
    new Float:X,Float:Y,Float:Z,Float:Angle,vehid; GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle);
    vehid = CreateVehicle(483,X,Y,Z,Angle,-1,-1,10000); //camper id 483 not 522
    PutPlayerInVehicle(playerid,vehid,0);
    ChangeVehiclePaintjob(vehid,0);
    return 1;
}
If you want to add more things Use
pawn Код:
AddVehicleComponent(vehid, Componentid);
Componentid:
https://sampwiki.blast.hk/wiki/Car_Component_ID
Reply
#8

Alright, it works, but if I want to save it as /save
this is a saved position:
pawn Код:
AddStaticVehicle(483,2457.1055,-2138.8542,13.5394,0.0145,1,20);
I have added it in OnGameModeInit and compiled it, restarted the server and went ingame again, and the paintjob isn't there, how can I save the paintjob?
Reply
#9

pawn Код:
public OnPlayerEnterVehicle(playerid,vehicleid,ispassenger)
{
    if(GetVehicleModel(vehicleid) == 483)
    {
        ChangeVehiclePaintjob(vehid,0);
    }
    return 1;
}
Reply
#10

pawn Код:
C:\Users\Ilic\Desktop\GoGoGo druga verzija\GoGoGo server\filterscripts\vcamper.pwn(104) : error 017: undefined symbol "vehid"
Wops xD
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)