SAFKY DEV - DOCS
YouTubeGithubDiscord
  • About SAFKY DEV
  • SCRIPTS GUIDES
    • ๐Ÿ”SAFE EVENTS
    • ๐Ÿ“˜GUIDEBOOK
    • ๐Ÿ’ŽS_PREMIUM
    • ๐Ÿ‘ชS_MULTICHAR
    • ๐ŸงชDRUGS
    • ๐Ÿ”ซTERRITORIES
    • ๐Ÿง ORGANS TRAFFIC
Powered by GitBook
On this page
  • 1. DEPENDENCIES
  • 2. REMOVE SCRIPTS
  • 3. SQL
  • 4. CONFIG FILE

Was this helpful?

  1. SCRIPTS GUIDES

S_MULTICHAR

1. DEPENDENCIES

QBCore and a clothing Script (qb-clothing, fivem-appearance or illenium-appearance)

2. REMOVE SCRIPTS

Remove those scripts if you use, since you don't need anymore: - qb-multicharacter - qb-spawn - qb-apartments

3. SQL

Inside the package you will find a file sql to install in your database.

CREATE TABLE IF NOT EXISTS `s_apartments` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `type` varchar(255) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `citizenid` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `citizenid` (`citizenid`),
  KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=4144 DEFAULT CHARSET=latin1;

4. CONFIG FILE


Config = {}

--#### GENERAL CONFIG ####
Config.ExportMenu = 'qb-menu' --- @param Modify the export of your menu script.
Config.WeatherScript = 'qb' --- @param Choose between 'qb' or 'cd_easytime'
Config.ClothingScript = 'fivem-appearance' --- @param Choose between 'qb-clothing', 'fivem-appearance' or 's_clothing'.

Config.ApartmentSystem = true --- @param Set to 'false' if you dont want to use apartments system.
Config.StashWeight = 150000
Config.StashSlots = 50

Config.DefaultSpawn = vector3(-1035.71, -2731.87, 12.86) --- @param Modify if you dont want to use apartment system, this will be the first spawn loc.

Config.FreeCharacters = 1
Config.PremiumSlots = { --- @param Set here the premium slots 
    { license = "license:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", slots = 2 },
}

--#### PED AND CAM COORDS ####
Config.PreviewCoords = vector4(-802.73, 341.02, 206.22, 195.4)
Config.PedCoords = vector4(-761.98, 318.37, 170.6, 356.56)  
Config.CamCoords = vector4(-761.97, 321.38, 170.6, 176.31)  

Config.DefaultClothes = { --- @param Set default clothes for non-created peds.
    [0] = {drawable = 0, texture = 0}, -- Face
    [1] = {drawable = 0, texture = 0}, -- Mask
    [2] = {drawable = 0, texture = 0}, -- Hair  
    [3] = {drawable = 0, texture = 0}, -- Torso
    [4] = {drawable = 1, texture = 0}, -- Leg
    [5] = {drawable = 0, texture = 0}, -- Parachute
    [6] = {drawable = 1, texture = 0}, -- Shoes
    [7] = {drawable = -1, texture = 0}, -- Accessory
    [8] = {drawable = 15, texture = 0}, -- Undershirt
    [9] = {drawable = 0, texture = 0}, -- Kevlar
    [10] = {drawable = 0, texture = 0}, -- Badge
    [11] = {drawable = 0, texture = 0}, -- Torso
}

--#### ANIMATIONS ####
Config.Animations = { --- @param Modify the animations ped does in the char selector scren.
    "WORLD_HUMAN_HANG_OUT_STREET", 
    "WORLD HUMAN STAND IMPATIENT", 
    "WORLD_HUMAN_STAND_MOBILE", 
    "WORLD_HUMAN_SMOKING_POT", 
    "WORLD_HUMAN_LEANING",  
    "WORLD_HUMAN_TOURIST_MAP", 
}

--#### APARTMENTS ####
Config.UsePhoneEmail = false --- @param Set to 'true' if you want to use phone emails instead normal notifications and config your phone on 'config_client.lua'
Config.PayToMove = false --- @param Set to 'true' if you have more then 1 apartment and you want to charge player for moving to other apartment
Config.ValueToMove = 50000
Config.EnableRent = true
Config.PriceRent = 1000
Config.IntervalRent = 500 -- 1000 = 1hour, 500 = 30minutes e.g....


Config.Apartments = {
    ["apartment1"] = {
        name = "apartment1", -- never change this name
        label = "Integrity Way", -- never change this name
        coords = vector4(269.73, -640.75, 42.02, 249.07),
        polyzoneBoxData = {
            heading = 250,
            minZ = 40,
            maxZ = 43.5,
            debug = false,
            length = 1,
            width = 1,
            distance = 2.0,
            created = false
        }
    },
    
    ["apartment2"] = {
        name = "apartment2",
        label = "Morningwood Blvd",
        coords = vector4(-1288.52, -430.51, 35.15, 124.81),
        polyzoneBoxData = {
            heading = 124,
            minZ = 34.0,
            maxZ = 37.0,
            debug = false,
            length = 1,
            width = 3,
            distance = 2.0,
            created = false
        }
    },
    ["apartment3"] = { 
        name = "apartment3", 
        label = "South Rockford Drive",
        coords = vector4(-667.02, -1105.24, 14.63, 242.32),
        polyzoneBoxData = {
            heading = 245,
            minZ = 13.5,
            maxZ = 16.0,
            debug = false,
            length = 1,
            width = 3,
            distance = 2.0,
            created = false
        }
    },
}

--#### COMMANDS ####
Config.Commands = { 
    --STAFF 
    ["deletechar"] = { Command ="deletechar", Permission = "god"}, 
}

--#### NOTIFICATIONS ####
function ShowNotification(msg, type) 
    if type == 'inform' then 
		QBCore.Functions.Notify(msg, "primary")
    end
    if type == 'error' then 
        QBCore.Functions.Notify(msg, "error")
    end
    if type == 'success' then 
       QBCore.Functions.Notify(msg, "success")
    end
end

--## HUD ##--
Config.ToggleHud = false --- @param Set to 'true' to use the functions below if your hud support it hide and show hud.

function ToggleHud(toggle) 
    if toggle then
        TriggerEvent('hud:toogle', true)
    else
        TriggerEvent('hud:toogle', false)
    end
end

PreviousS_PREMIUMNextDRUGS

Last updated 2 years ago

Was this helpful?

๐Ÿ‘ช
Page cover image