Skip to main content

CustomSeatWrapper

Extends RideSeat Description here

Functions

new

Constructor
CustomSeatWrapper.new(seatCustomSeat) → CustomSeatWrapper

setEnabled

CustomSeatWrapper:setEnabled(newValueboolean) → ()

Sets Disabled value of the seat

Show raw api
{
    "functions": [
        {
            "name": "new",
            "desc": "",
            "params": [
                {
                    "name": "seat",
                    "desc": "",
                    "lua_type": "CustomSeat"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "CustomSeatWrapper"
                }
            ],
            "function_type": "static",
            "tags": [
                "Constructor"
            ],
            "source": {
                "line": 20,
                "path": "src/shared/plugins/customSeat/shared/CustomSeatWrapper.lua"
            }
        },
        {
            "name": "_occupantChanged",
            "desc": "Called when occupant changes",
            "params": [],
            "returns": [],
            "function_type": "method",
            "private": true,
            "source": {
                "line": 37,
                "path": "src/shared/plugins/customSeat/shared/CustomSeatWrapper.lua"
            }
        },
        {
            "name": "setEnabled",
            "desc": "Sets Disabled value of the seat",
            "params": [
                {
                    "name": "newValue",
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 61,
                "path": "src/shared/plugins/customSeat/shared/CustomSeatWrapper.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "CustomSeatWrapper",
    "desc": "Extends RideSeat\n*Description here*",
    "source": {
        "line": 12,
        "path": "src/shared/plugins/customSeat/shared/CustomSeatWrapper.lua"
    }
}