Mechanic Integration
Explore the versatile integration options for vehicle parts and statistics within your resource through our custom exports.
When integrating mechanics, utilize our export to repair vehicle parts with a minimum of 3 values and a maximum of 4:
Part name (e.g., "radiator").
Health Points in float number (up to 1000.0 for maximum).
Boolean respawn value (true/false).
Optional vehicle entity ID (Needs to be client sided entity id).
Avoid setting the respawn option to true unless you have specific requirements or issues.
If no vehicle entity ID is provided, it will automatically select the closest vehicle in front of the player's camera or the one they are sitting in.
If you wish to acquire/display the vehicle parts statistics in your resource, use our dedicated export. It necessitates just one input: the vehicle's plate, and it will provide an array containing all the vehicle's statistics.
Last updated
Was this helpful?