Skip to content
This repository was archived by the owner on Oct 1, 2023. It is now read-only.

Configs

Stanislav Opletal edited this page May 31, 2020 · 1 revision

At rcore we have two configs, one for server & client side and one only for server side, its because someone can stole your client side data so even config and we don't want to get some data into "hackers" hand, so we create two configs.

Client side config (config.lua)

Config = {}
Config.Debug = true --Turn off in production mode, showing lot of debug messages
Config.ESXCallback = "esx:getSharedObject" --Your ESX callback, if you are using some anticheat you can change it here
Config.DefaultChatColor = { 255, 255, 255 } --Using for chat messages as default color
Config.CheckPlayerPosition = 500 --in ms
Config.NearObjectDistance = 100.0 -- Using for optimization of loading markers etc
Config.DefaultBlipOptions = { --Blip settings
    scale = 1.0,
    shortRange = true,
    type = 4,
    color = 55,
    blip = -1
}
Config.InsideShop = vector3(228.5, -993.5, -99.0) --For now nevermind

Config.DiscordColors = { --Discord int colors
    ['Green'] = 56108,
    ['Grey'] = 8421504,
    ['Red'] = 16711680,
    ['Orange'] = 16744192,
    ['Blue'] = 2061822,
    ['Purple'] = 11750815
}

Config.DefaultMarkerOptions = { --Default marker options
    scale = {
        x = 1.5,
        y = 1.5,
        z = 0.5
    },
    rot = {
        x = 0.0,
        z = 0.0,
        y = 0.0
    },
    color = {
        r = 255,
        g = 255,
        b = 255,
        a = 255
    },
    dir = {
        x = 0.0,
        y = 0.0,
        z = 0.0
    },
    bobUpAndDown = false,
    faceCamera = false,
    p19 = 2,
    rotate = false,
    textureDict = nil,
    textureName = nil,
    drawOnEnts = nil,
    onEnter = nil,
    onLeave = nil,
    onEnterKey = nil,
    jobs = nil,
    grades = nil
}

Config.DefaultTextOptions = { --3D text options
    color = {
        r = 255,
        g = 255,
        b = 255,
        a = 255
    },
    scale = {
        scale = 0.5,
        size = 0.5
    }
}

Server config (config_s.lua)

SConfig = {}
SConfig.DiscordWebhook = "" --Discord web hook for sending messages send by rcore

Clone this wiki locally