πŸ“–
Documentation
  • Welcome!
  • Common Issues
    • Keymaster
    • Updating resources
  • πŸ“„Scripts
    • πŸš™AdvancedParking
      • Installation
      • Commands
      • Exports (server)
      • Exports (client)
      • Events (server)
      • Events (client)
      • FAQ
    • 🚚VehicleTransport
      • Installation
      • How to use it
      • Creating a new transport
      • Exports (client)
      • Events (server & client)
    • πŸ”‘VehicleKeyChain
      • Installation
      • Commands
      • Exports (server)
      • Exports (client)
      • FAQ
    • πŸ—œοΈVehicleClamp - Pre-Release
      • Installation
      • Commands
      • Exports (server)
      • Exports (client)
      • Integration
        • ESX
        • QB
    • πŸ“„VehicleRegistration
      • Installation
      • Exports (server)
      • Exports (client)
    • πŸ“ƒVehicleInteraction
      • Installation
    • πŸ—ΊοΈVehicleTracker
      • Installation
      • Exports (server)
      • Exports (client)
    • 🌐JobTracker
      • Installation
    • πŸ•΅οΈβ€β™‚οΈVehicleForceFirstPerson
      • Installation
    • 🎯BulletRicochet
      • Installation
  • πŸ†“Free Scripts
    • πŸ“žkimi_callbacks
      • Installation
      • Exports (server)
      • Exports (client)
      • Examples
    • 🚜VehicleDeformation
      • Installation
      • Exports (server)
      • Exports (client)
    • 🎦OrbitCam
      • Installation
      • Exports (client)
      • Commands
    • πŸ”οΈEarthquakeSimulator
      • Installation
      • Exports (server)
      • Commands
    • πŸ’€DeathCam
      • Installation
Powered by GitBook
On this page
  • GetVehicleDeformation(vehicle)
  • SetVehicleDeformation(vehicle, deformation)
  • FixVehicleDeformation(vehicle)
  • IsDeformationWorse(firstDeformation, secondDeformation)
  • IsDeformationEqual(firstDeformation, secondDeformation)
  • GetDeformationOffsets(vehicle)
  1. Free Scripts
  2. VehicleDeformation

Exports (client)

GetVehicleDeformation(vehicle)

Gets the vehicles deformation in a table.

Parameters: vehicle - number - The handle of the vehicle.

Returns: table<table<offset: vector3, damage: number>> - List of offsets from the vehicle and the relative damage.


SetVehicleDeformation(vehicle, deformation)

Sets the deformation on a vehicle.

Parameters: vehicle - number - The handle of the vehicle. deformation - table<table<offset: vector3, damage: vector3>> - The deformation values.


FixVehicleDeformation(vehicle)

Fixes the deformation of a vehicle.

Parameters: vehicle - number - The handle of the vehicle.


IsDeformationWorse(firstDeformation, secondDeformation)

Compares both deformation tables and returns if the first one is worse than the second.

Parameters: firstDeformation - table<table<offset: vector3, damage: number>> - The first deformation table. secondDeformation - table<table<offset: vector3, damage: number>> - The second deformation table.

Returns: bool - True if the first deformation is worse than the second one.


IsDeformationEqual(firstDeformation, secondDeformation)

Compares both deformation tables and returns if they are equal.

Parameters: firstDeformation - table<table<offset: vector3, damage: number>> - The first deformation table. secondDeformation - table<table<offset: vector3, damage: number>> - The second deformation table.

Returns: bool - True if both deformation tables are equal.


GetDeformationOffsets(vehicle)

Returns all offsets for a specified vehicle

Parameters: vehicle - number - The handle of the vehicle.

Returns: table<vector3> - A table containing all offsets around a vehicle.

PreviousExports (server)NextOrbitCam

Last updated 9 months ago

πŸ†“
🚜