REC_ObjectHunt
Exports
Configuration and integration for REC_ObjectHunt.
- Added
- Updated
Server side
isPlaying
Checks whether the player is playing; waiting in the lobby does not count.
| Argument | Type | Description |
|---|---|---|
src | integer | Player source ID |
Returns boolean.
exports.REC_ObjectHunt:isPlaying(src)
isJoining
Checks whether the player belongs to an Object Hunt session.
| Argument | Type |
|---|---|
src | integer |
Returns: boolean.
exports.REC_ObjectHunt:isJoining(src)
getSessions
Returns current session information keyed by ID.
Takes no arguments.
Returns: table<string, ObjectHunt.Server.Class.Session.NuiData>.
exports.REC_ObjectHunt:getSessions()
Client side
isRunning
Checks whether the local player is in a running game.
Takes no arguments.
Returns boolean.
exports.REC_ObjectHunt:isRunning()
getRole
Returns the local role, or nil outside a session.
Takes no arguments.
Returns: ObjectHunt.Shared.Enum.Role|nil.
exports.REC_ObjectHunt:getRole()
