NextScripts
  • NextScripts Documentation
  • ESX Scripts
    • ✅Garage System
      • Installation
      • SQL
      • Configuration
        • Main Config
        • Blips Config
        • Commands Config
        • Zones Config
      • Events & Exports
        • Client
          • Deformation
          • getExtraData - Export
          • SpawnVehicle - Export
          • StoreVehicle - Export
          • isInAnyMarker - Export
          • impound - Export
          • pdimpound - Export
        • Server
          • Deformation
      • Commands
    • 🛠️Engine System
      • Installation
      • Configuration
      • Events & Exports
        • Client
        • Server
    • 🛠️Vehicle Lock
Powered by GitBook
On this page
  1. ESX Scripts
  2. Garage System
  3. Events & Exports
  4. Client

Deformation

Deformation

This will remove the Deformations of the vehicle

exports['ns_garagesystem']:FixVehicleDeformation(vehicle)
TriggerServerEvent("ns_garagesystem:fixDeformation", NetworkGetNetworkIdFromEntity(vehicle))

This will set the Deformation example use is after vehicle is Spawned

exports['ns_garagesystem']:SetVehicleDeformation(vehicle, deformationPoints, callback)
local deformation = exports['ns_garagesystem']:GetVehicleDeformation(vehicle)

There a one check with that you can check if the deformation equal.

local state = exports['ns_garagesystem']:IsDeformationEqual(newDef, oldDef) -- Return bool
PreviousClientNextgetExtraData - Export

Last updated 1 year ago

✅