Descrição do Arquivo
Salvar as deformações dos veículos / VehicleDeformation Save fivem
Tutorial em Inglês, não vou traduzir para não perder as informações.
Installation instructions
Extract the downloaded folder into your resources.
Start the resource in your server.cfg:ensure VehicleDeformation
Repair the deformation using the FixVehicleDeformation export (more below).
Exports usage
Getting vehicle deformation (client only)
local deformation = exports["VehicleDeformation"]:GetVehicleDeformation(vehicle)
Setting vehicle deformation (client only)
exports["VehicleDeformation"]:SetVehicleDeformation(vehicle, deformation)
Fixing vehicle deformation (needs to be called when repairing a vehicle) (client and server)
exports["VehicleDeformation"]:FixVehicleDeformation(vehicle)
Check if first deformation is worse than second (client only)
exports["VehicleDeformation"]:IsDeformationWorse(firstDeformation, secondDeformation)
Check if first deformation is equal to second deformation (client only)
exports["VehicleDeformation"]:IsDeformationEqual(firstDeformation, secondDeformation