Exports

Series of exports that will be added as time goes on. These are good for implementing radial menus and usage of 3rd party scripts

Client Exports


Client-side exports can be executed on the local player without job requirement. Utilizing export on a target will require the client triggering to have the required job/group.

OpenCrutchMenu
exports.wasabi_crutch:OpenCrutchMenu()

Opens player select menu of crutch system OR provides notification that there are no nearby players.

RemoveCrutch
exports.wasabi_crutch:RemoveCrutch(SERVER_ID)

Removes crutch from ID provided in parameter.


SERVER_ID: Server Id

SetCrutchTime
exports.wasabi_crutch:SetCrutchTime(SERVER_ID, TIME)

Adds as well as sets time of crutch to id and time specified in parameter.


SERVER_ID: Server Id

TIME: Time(in minutes)

OpenChairMenu
exports.wasabi_crutch:OpenChairMenu()

Opens player select menu of wheelchair OR provides notification of no nearby players.

RemoveChair
exports.wasabi_crutch:RemoveChair(SERVER_ID)

Removes chair from ID provided in parameter.


SERVER_ID: Server Id

SetChairTime
exports.wasabi_crutch:SetChairTime(SERVER_ID, TIME)

Adds as well as sets time of wheelchair to id and time specified in parameter.


SERVER_ID: Server Id

TIME: Time(in minutes)

IsWheelchairActive
exports.wasabi_crutch:IsWheelchairActive()

Returns true if local player currently has active wheelchair.

IsCrutchActive
exports.wasabi_crutch:IsCrutchActive()

Returns true if local player currently has active crutch.

Server Exports


GiveCrutchTarget
exports.wasabi_crutch:GiveCrutchTarget(SERVER_ID, TIME)

Gives target ID crutch for set time(minutes).


SERVER_ID: Server Id

TIME: Time(in minutes)

GiveWheelchairTarget
exports.wasabi_crutch:GiveWheelchairTarget(SERVER_ID, TIME)

Gives target wheelchair for set time(minutes).


SERVER_ID: Server Id

TIME: Time(in minutes)

Last updated