Vice City: Multiplayer

VC:MP Discussion => Support => Topic started by: Chicken on Jul 31, 2020, 03:05 PM

Title: I need vehicle Part ID code
Post by: Chicken on Jul 31, 2020, 03:05 PM
Help Me Find Vehicle Part ID code
Thanks :D
Title: Re: I need vehicle Part ID code
Post by: Chicken on Jul 31, 2020, 05:09 PM
Help me
Title: Re: I need vehicle Part ID code
Post by: SHy^ on Jul 31, 2020, 07:26 PM
Elaborate more.
Title: Re: I need vehicle Part ID code
Post by: Sebastian on Jul 31, 2020, 08: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
Title: Re: I need vehicle Part ID code
Post by: Chicken on Aug 01, 2020, 04:12 AM
Quote from: Sebastian on Jul 31, 2020, 08:53 PMI 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?
Title: Re: I need vehicle Part ID code
Post by: Chicken on Aug 01, 2020, 04:14 AM
Quote from: Sebastian on Jul 31, 2020, 08:53 PMI 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
Title: Re: I need vehicle Part ID code
Post by: Chicken on Aug 01, 2020, 04:21 AM
Quote from: Chicken on Aug 01, 2020, 04:12 AM
Quote from: Sebastian on Jul 31, 2020, 08:53 PMI 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
Title: Re: I need vehicle Part ID code
Post by: SHy^ on Aug 01, 2020, 04:51 AM
Official wiki is down, use Thijn's mirror:
wiki.thijn.ovh
Title: Re: I need vehicle Part ID code
Post by: Chicken on Aug 01, 2020, 09:17 AM
Quote from: SHy^ on Aug 01, 2020, 04:51 AMOfficial wiki is down, use Thijn's mirror:
wiki.thijn.ovh
This wiki is lose some important content
Title: Re: I need vehicle Part ID code
Post by: Gulk on Aug 01, 2020, 09:13 PM
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
    @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:
(https://i.ibb.co/bJc9031/exmpl.png) (https://ibb.co/FVRTrW6)
Title: Re: I need vehicle Part ID code
Post by: KrOoB_ on Aug 02, 2020, 03:10 PM
(https://i.imgur.com/VVbMS54.png)
probably same but there it's
webarchive (https://web.archive.org/web/20191122154111/http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions/Vehicle.SetPart)