2026-04-14 17:41:39 +02:00

13 lines
406 B
Lua

local function FixVehicleDeformation(vehicle)
assert(vehicle and DoesEntityExist(vehicle), "Parameter \"vehicle\" must be a valid vehicle entity!")
Entity(vehicle).state:set("deformation", nil, true)
end
RegisterNetEvent("VD:fixDeformation", function(networkId)
FixVehicleDeformation(NetworkGetEntityFromNetworkId(networkId))
end)
exports("FixVehicleDeformation", FixVehicleDeformation)