Zyke ResourcesDocumentation

Exports & Events

All exports and events available to integrate this resource into others.

Types & Classes

All types & classes can be found in types.lua.

Suggestions?

If you wish to have any exports and or events added, please head over to our Discord and create a suggestion post. We are happy to allow for easier integration within other resources.

#Client Exports

#Set Deformation

Sets the deformation of a vehicle. This should be triggered right when it is spawned, like in a garage script.

This shouldn't be triggered all by itself, it should only set the deformation that has been captured by the Get Deformation export.

Example:

---@param veh integer
---@param deformation table
exports["zyke_realisticvehicles"]:SetDeformation(veh, deformation)

#Get Deformation

Grabs the deformation of a vehicle. This should be used when you want to save the current state to apply later, like when parking your vehicle in a garage.

This, by itself, does nothing. It should be used in combination with Set Deformation to retrieve & apply deformation.

Example:

---@param veh integer
---@return table
local deformation = exports["zyke_realisticvehicles"]:GetDeformation(veh)

#Fix Deformation

Fixes the deformation on a car. As this is written, all the export does is run the SetVehicleDeformationFixed native, but this may be changed in a future update. So if you want stability, trigger this export, even if it's not necessary right now.

Example:

---@param veh integer
exports["zyke_realisticvehicles"]:FixDeformation(veh)