core.libraries.sh_character
(no description)
Functions
cityrp.character.CheckUniqueName(characters, firstName, lastName)
View source »Returns true if the given name is found, returns false if not found (it is unique)
Parameters
-
characters
Character[]
-
firstName
string
-
lastName
string
cityrp.character.CreateInternal(client, data)
View source »Documentation for this section is incomplete and needs expanding.
Parameters
-
client
Player or string
-
data
table or number
cityrp.character.FilterModelsForFace(face, models)
View source »Filters a table of models (string paths) for a given face.
Parameters
-
face
string
-
models
table
Returns
cityrp.character.ForceUnSelect(client)
View source »Documentation for this section is incomplete and needs expanding.
Parameters
-
client
Player
cityrp.character.GenerateRandomName(bIsFemale)
View source »Generates a random name for a character.
Parameters
-
bIsFemale
boolean
Whether the character is female or not.
Returns
cityrp.character.Get(client, id)
View source »Documentation for this section is incomplete and needs expanding.
Parameters
-
client
Player or string
-
id
integer
Returns
-
optional
cityrp.character.LoadAll(client)
View source »Documentation for this section is incomplete and needs expanding.
Parameters
-
client
Player
cityrp.character.LoadByID(client, id, callback)
View source »Loads a character by ID for a specific client.
Parameters
-
client
Player
The client for whom to load the character.
-
id
number
The ID of the character to load.
-
callback
function
[optional] A callback function to be called after the character is loaded.
cityrp.character.NetworkActive(client)
View source »Documentation for this section is incomplete and needs expanding.
Parameters
-
client
Player
cityrp.character.NetworkAll(client)
View source »Documentation for this section is incomplete and needs expanding.
Parameters
-
client
Player
cityrp.character.PreviewInventory(client, char)
View source »Preview the given character's primary inventory to the specified client, this is a read-only snapshot view
Parameters
-
client
Player
-
char
Character
cityrp.character.Select(client, character)
View source »Documentation for this section is incomplete and needs expanding.
Parameters
-
client
Player
-
character
Character or integer
cityrp.character.SetType(character, type)
View source »Sets/Changes the character's type, used for changing the character's persistent role (gov characters)
Parameters
-
character
Character
-
type
string