You could use this to get back on track on your project, you should be able to figure out what goes where from this =) .
Door indexes:
0 = Front Left, //Front left window
1 = Front Right, //Front right window
2 = Back Left, //Middle left window
3 = Back Right, //Middle right window
4 = Hood, //Back left window
5 = Trunk //Back right window
6 = Toggle Extra //Windscreen
7 = Toggle Extra //Back window
Door indexes also go in the same pattern as vehicle seats, but - 1. For example, index -1 is the driver, but index 0 is the passenger. This is the same case for all "normal" cars (What I mean by that is, if the car has extra seats, you need to check the VehicleSeat enum).
The natives you need/used:
void SET_VEHICLE_DOOR_OPEN(Vehicle vehicle, int doorIndex, BOOL loose, BOOL openInstantly)
void SMASH_VEHICLE_WINDOW(Vehicle vehicle, int index)
Your topic does unfortunately look like a case of code theft so you're going to have to figure out the other stuff out yourself 😃