I need vehicle Part ID code

Chicken

  • Newbie
  • Posts: 8

SHy^

  • Newbie
  • Posts: 25

Sebastian

  • VC:MP Beta Tester
  • Something like this: hga hga hga
  • Posts: 1,059
Re: I need vehicle Part ID code
« Reply #3,  »
I think he is talking about the parts that can be damaged,  like doors,  wheels,  window,  etc.

If im not wrong,  they were starting with id 0 and ending with 9, with a status from 0 to 3.
For a proper testing,  choose a car which has trunk,  4 doors.
You can test it with some function called "vehicle. SetPart( part ID,  status ID) " or something like that

Chicken

  • Newbie
  • Posts: 8
Re: I need vehicle Part ID code
« Reply #4,  »
Quote from Sebastian on July 31st, 09:53 PM
I think he is talking about the parts that can be damaged,  like doors,  wheels,  window,  etc.

If im not wrong,  they were starting with id 0 and ending with 9, with a status from 0 to 3.
For a proper testing,  choose a car which has trunk,  4 doors.
You can test it with some function called "vehicle. SetPart( part ID,  status ID) " or something like that
wiki is down now, I can't find the ID for the part of the vehicle,Do you have these ID References?
Re: I need vehicle Part ID code
« Reply #5,  »
Quote from Sebastian on July 31st, 09:53 PM
I think he is talking about the parts that can be damaged,  like doors,  wheels,  window,  etc.

If im not wrong,  they were starting with id 0 and ending with 9, with a status from 0 to 3.
For a proper testing,  choose a car which has trunk,  4 doors.
You can test it with some function called "vehicle. SetPart( part ID,  status ID) " or something like that
Yes, just like you think
Re: I need vehicle Part ID code
« Reply #6,  »
Quote from Chicken on August 1st, 05:12 AM
Quote from Sebastian on July 31st, 09:53 PM
I think he is talking about the parts that can be damaged,  like doors,  wheels,  window,  etc.

If im not wrong,  they were starting with id 0 and ending with 9, with a status from 0 to 3.
For a proper testing,  choose a car which has trunk,  4 doors.
You can test it with some function called "vehicle. SetPart( part ID,  status ID) " or something like that
wiki is down now, I can't find the ID for the part of the vehicle,Do you have these ID References?
But you didn't mention the wheel part ID

SHy^

  • Newbie
  • Posts: 25

Chicken

  • Newbie
  • Posts: 8

Gulk

  • VC:MP Beta Tester
  • MTA 0.5 Vet / VCMP since 0.1a
  • Posts: 98
Re: I need vehicle Part ID code
« Reply #9,  »Last edited
You can attempt to use the Java server and do it like this:

Taken from https://bitbucket.org/maxorator/vcmp-java-plugin-base/src/a57e2815608ee04d9abfb0c10348409772e9aee6/demo/src/main/com/maxorator/vcmp/java/mode/OtherCommands.java?at=default
Code: [Select]
    @Command
    public void breakCar(Player player, Vehicle vehicle) {
        VehicleDamage damage = vehicle.getDamage();
        damage.setDoorStatus(VehicleDamage.Door.Bonnet, VehicleDamage.DoorStatus.Flapping);
        damage.setTyreStatus(VehicleDamage.Tyre.LeftRear, VehicleDamage.TyreStatus.Flat);
        damage.setPanelStatus(VehicleDamage.Panel.Windscreen, VehicleDamage.PanelStatus.Damaged);
        vehicle.setDamage(damage);

        server.sendClientMessage(player, COLOUR_YELLOWISH, "Broke that car.");
    }

IDE also will make helpful suggestions as you type, If you didn't know:
MTA 0.5 Server (VCMP) - Discord: https://discord.gg/NRKQYHZ

KrooB

  • Full Member
  • BEN TÜRKÜM
  • Posts: 142
We are his people !
Who can challange us ?