Editing/modifying cars rotation, scale, position, etc
-
Is there a certain way to modify a car that the player is in rotation, scale, & position?
I looked through this and still couldnt find anything about it.
-
SET_ENTITY_ROTATION
void SET_ENTITY_ROTATION(Entity entity, float pitch, float roll, float yaw, int rotationOrder, BOOL p5) // 0x8524A8B0171D5E07 0x0A345EFE b323
You could also try this:
TASK::TASK_VEHICLE_PARK void TASK_VEHICLE_PARK(Ped ped, Vehicle vehicle, float x, float y, float z, float heading, int mode, float radius, BOOL keepEngineOn) // 0x0F3E34E968EA374E 0x5C85FF90 b323 Modes: 0 - ignore heading 1 - park forward 2 - park backwards Depending on the angle of approach, the vehicle can park at the specified heading or at its exact opposite (-180) angle. Radius seems to define how close the vehicle has to be -after parking- to the position for this task considered completed. If the value is too small, the vehicle will try to park again until it's exactly where it should be. 20.0 Works well but lower values don't, like the radius is measured in centimeters or something.
You want to scale the car?? Seriously?
-
@JohnFromGWN Lookin at all that bro im straight confused, is this actual code? I'm
new to mod creation lol but yea why would someone wanna scale a vehicle-
-
@JohnFromGWN Ah okay, thank you. Also is there a document for SHVDN v3?
-
@ScuffedItalian No, not really of any value.
https://nitanmarcel.github.io/scripthookvdotnet/index.html
https://github.com/crosire/scripthookvdotnet/wiki/How-Tos
Your best bet is to use Visual Studio and its intellisense etc .