core.metatables.sh_character

(no description)

Functions

GetData(key)

View source »

Get data from this character, stored as JSON internally. This is also synced over the network.

Parameters

  • key string

    Key to get data from @[opt]string default Default value if data is invalid

Returns

  • string

    Data stored under the given key, nil if does not exist

GetID()

View source »

Returns this character's database ID. This is guaranteed to be unique.

Returns

  • number

    Unique ID of character

SetData(key, value)

View source »

Set data for this character, stored as JSON internally. This is also synced over the network.

Parameters

  • key string

    Key to set data for

  • value string

    Value to set for the given key

__eq(other)

View source »

Returns true if this character is equal to another character. Internally, this checks character IDs.

Parameters

  • other

Returns

  • bool

    Whether or not this character is equal to the given character > false

__tostring()

View source »

Returns this character as a string

Returns

Tables

Character

View source »
Incomplete

Documentation for this section is incomplete and needs expanding.

Fields

  • id number

  • inventoryID number

  • inventoryActiveID number

  • money number