Character Client Configuration
This section contains settings related to character creation, spawning, and deletion.
Character Creation Location
Defines the position where a new character is created. Uses a vector4
format (x, y, z, heading
).
location = vec4(0, 0, 0, 0),
View character last position
If false
, the character will always spawn at the character creation location
viewCharacterLastPosition = true,
Delete Character
If true
, the character can be deleted. If false
, character deletion is disabled.
deleteCharacter = true,
Spawn Locations
Predefined locations where a character can spawn.
spawns = {
{
name = 'Legion',
coords = vector4(195.17, -933.77, 29.7, 144.5)
},
{
name = 'Paleto',
coords = vector4(80.35, 6424.12, 30.67, 45.5),
},
{
name = 'Motel',
coords = vector4(327.56, -205.08, 53.08, 163.5),
},
{
name = 'Police Department',
coords = vector4(428.23, -984.28, 29.76, 3.5),
}
},
Character Creation Form
Form validation for character creation.
formCreateCharacter = {
firstname = {
min = 2,
min_message = 'First name must be at least 2 characters',
max = 20,
max_message = 'First name must be at most 20 characters',
},
lastname = {
min = 2,
min_message = 'Last name must be at least 2 characters',
max = 20,
max_message = 'Last name must be at most 20 characters',
},
dob = {
min = '01/01/1900',
format = 'dd/MM/yyyy',
message = 'Date of birth must be between 01/01/1900 and today',
},
height = {
min = 100,
min_message = 'Height must be at least 100cm',
max = 300,
max_message = 'Height must be at most 300cm',
}
},
Last updated on