Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Config = {
- nameBlacklist = { -- if ANY part of a name contains these characters, it will be rejected, i.e. "fucker", "fatass", "dickhead"
- },
- uniqueNamesOnly = true, -- names must be unique, i.e., two characters cannot share the same EXACT name (case insensitive)
- disableSpecialChars = true, -- names cannot contain special characters, e.g. @, !, ^, %, $, etc.
- nameMustContainVowel = true, -- all names must contain a vowel
- consoleOutput = true, -- output debug text to console
- charIdentifier = ESX.GetConfig().Identifier or GetConvar('sv_lan', '') == 'true' and 'ip' or "license",
- prefix = "char",
- -- base locations to spawn in
- baseSpawnLocations = {
- {
- coords = vector4(435.68, -645.97, 28.73, 85.0),
- name = "Los Santos"
- },
- {
- coords = vector4(177.596, 6636.183, 31.638, 130.0),
- name = "Paleto Bay"
- },
- {
- coords = vector4(1501.02, 3776.2, 33.5, 206.0),
- name = "Sandy Shores"
- }
- },
- -- if jailed, this will be your only option
- jailSpawn = {
- coords = vector3(1766.39, 2569.34, 45.72),
- name = "Bolingbroke Penitentiary"
- },
- -- this function will compute available spawn locations for the player
- spawnCompute = function(src, Player, firstJoin, isJailed)
- local spawnLocations = {};
- if not isJailed then
- if not firstJoin then
- spawnLocations = Utils:CopyTable(Config.baseSpawnLocations);
- elseif not Apartments or not Apartments.Starting then
- spawnLocations = Utils:CopyTable(Config.baseSpawnLocations);
- end
- -- prevent players from spawning at these locations by commenting them
- spawnLocations = Chars:GetHousingLocations(Player, spawnLocations);
- spawnLocations = Chars:GetLastLocation(Player, spawnLocations, firstJoin);
- else
- table.insert(spawnLocations, {
- name = Config.jailSpawn.name,
- coords = Config.jailSpawn.coords,
- isJailed = true
- });
- end
- return spawnLocations;
- end,
- -- implement your own logic to check if the player is jailed
- isJailed = function(src, xPlayer)
- -- retVal: boolean (true/false)
- return false
- end,
- -- allow respawning at last location
- allowRespawnLastLocation = true
- }
Add Comment
Please, Sign In to add comment