CreatorsServer exports
Revive
Last updated on
Gets a downed player up where the body lies.
local res = exports.opx_infinity:Revive(source, reason)Scope write · sync — memory only, it answers at once.
Parameters
-
source:
number -
reason?:
string— up to 256 characters, cut to 64 in the log -
Goes through the downed module's own revive.
-
Your resource must be allowed by the module's
REVIVERS(everyone by default), or it answerscaller_denied. -
The audit line names your resource and
reason.
Returns
true
Errors
not_down,not_incarnated,gate_closed,caller_denied,export.badArgument,error.unavailable
local res = exports.opx_infinity:Revive(patientId, 'medkit')
if not res.ok then print(res.error) end