Server

Server exports

GetVehicleChainsCount

Applies a chain to a specific vehicle wheel

-- Example
exports.kq_snowchains:ApplyVehicleChains(
    vehicle, -- integer - Entity
    wheelIndex, -- integer - Wheel index of which you want to add the chain to
    usingItem, -- boolean- Whether an item was used for the installation
)

-- Returns: boolean - Success

RemoveVehicleChains

Removes a chain from a specific vehicle wheel

-- Example
exports.kq_snowchains:RemoveVehicleChains(
    vehicle, -- integer - Entity
    wheelIndex, -- integer - Wheel index of which you want to add the chain to
)

-- Returns: boolean - Whether the chain was insalled using an item

HasChainsOnWheel

Returns whether a vehicle has a chain on a specific wheel

-- Example
exports.kq_snowchains:HasChainsOnWheel(
    vehicle, -- integer - Entity
    wheelIndex, -- integer - Wheel index of which you want to add the chain to
)

-- Returns: boolean - Whether the wheel has a chain

Last updated