githubEdit

Player

Noir.Classes.Player: NoirClass

Represents a player.


Noir.Classes.Player:Init(name, ID, steam, admin, auth)

Initializes player class objects.

Parameters

  • name: string

  • ID: integer

  • steam: string

  • admin: boolean

  • auth: boolean


Noir.Classes.Player:_CharacterLoad(character)

Triggers OnCharacterLoad.

Used internally.

Parameters

  • character: NoirObject


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: LookX

  • number: LookY

  • number: LookZ


Send this player a notification.

Parameters

  • title: string

  • message: string

  • notificationType: SWNotificationTypeEnum

Last updated