opx_infinitydowned
Client
Last updated on
The downed contract on the client — the local state and setting the down screen aside.
local downed = OPX.Api.Get('downed')IsDown
The local player's state as the server last pushed it.
downed.IsDown()Returns
Result{ down, waiting }
Suspend
Sets the down screen aside (it fades and gives the input back) while your own surface is up; on = false brings it back. A suspender whose module or resource stops is released automatically.
downed.Suspend(owner, on)Parameters
- owner:
string— must be inSUSPENDERS. - on:
boolean
Returns
Resulttrue— errorsinvalid_caller,caller_denied
downed.Suspend('admin', true) -- panel opens
downed.Suspend('admin', false) -- panel closed