Player
Noir.Classes.PlayerClass: NoirClass
Represents a player.
Initializes player class objects.
Parameters
name
: stringID
: integersteam
: stringadmin
: booleanauth
: booleanpermissions
: table<string, boolean>
Give this player a permission.
Parameters
permission
: string
Returns whether or not this player has a permission.
Parameters
permission
: string
Returns
boolean
Remove a permission from this player.
Parameters
permission
: string
Returns a table containing the player's permissions.
Returns
table<integer, string>
Sets whether or not this player is authed.
Parameters
auth
: boolean
Sets whether or not this player is an admin.
Parameters
admin
: boolean
Kicks this player.
Bans this player.
Teleports this player.
Parameters
pos
: SWMatrix
Returns this player's position.
Returns
SWMatrix
Set the player's audio mood.
Parameters
mood
: SWAudioMoodEnum
Returns this player's character as a NoirObject.
Returns
NoirObject|nil
Returns this player's look direction.
Returns
number
: LookXnumber
: LookYnumber
: LookZ
Send this player a notification.
Parameters
title
: stringmessage
: stringnotificationType
: SWNotificationTypeEnum
Last updated