After a while searching around on various modding sites looking for a mod that does what I want and not finding one, I decided to create it myself. Since the sum-total of my C# experience can be measured in single-digit hours I realized I needed some help from the community. The mod that I want to code will basically do one thing, I want to open the car's trunk on key up. Searching around on various websites I think I've found the requisite lines of code but with my level of expertise I might just be attempting to code the dimensions for Playmate of the Month.
I think I need to get the vehicle's trunk status first, then compare the status and call for an open/close based on that comparison. Not precisely sure how to code that. Let me paste what I've got so far.
void OnKeyUp(object sender, EventArgs e)
{
if (e.KeyCode == Keys.U)
{
VehicleDoor.Trunk;
void SET_VEHICLE_DOOR_SHUT(Vehicle vehicle, int 4 bool openInstantly)
}
}
If I'm heading in the right direction great, if I'm barking up the wrong tree, please let me know.