Codex Studios
Visit our Tebex StoreOur Discord
  • ๐Ÿ‘‹Welcome to Codex Studios
  • Overview
    • ๐Ÿ’กAbout Us
    • โœจOur Features
  • ๐Ÿ’…RedM-Scripts
    • ๐ŸŒ[Codex Studios] : Core
      • Client Side
      • Server Side - CodexCore API
      • Config
      • ๐Ÿ“ Client Side (clientside.lua)
      • ๐Ÿงพ Server Side (serverside.lua)
      • ๐Ÿ›ก๏ธCodexCore Security Module
      • ๐Ÿ—’๏ธSecurity Detailed Explanation
      • ๐Ÿ”Client-Side: Securing Event Triggers
      • ๐Ÿ”’Server-Side: Securing Event Triggers
    • ๐Ÿ’ช[Codex Studios] : Trust Level
      • Client Side
      • Config
      • SQL
  • ๐Ÿ“ฆ[Codex Studios]: Supplies System
    • Client Side
    • Server-Side Town Supplies
    • Config
    • ๐Ÿช›Examples and Commands
    • Sql Updated
Powered by GitBook
On this page

Was this helpful?

  1. RedM-Scripts
  2. [Codex Studios] : Trust Level

Config

Codex = {

    Keys = {
        -- Letters
        ["A"] = 0x7065027D, ["B"] = 0x4CC0E2FE, ["C"] = 0x9959A6F0, ["D"] = 0xB4E465B4, ["E"] = 0xCEFD9220, ["F"] = 0xB2F377E8,
        ["G"] = 0x760A9C6F, ["H"] = 0x24978A28, ["I"] = 0xC1989F95, ["J"] = 0xF3830D8E, ["K"] = nil, ["L"] = 0x80F28E95,
        ["M"] = 0xE31C6A41, ["N"] = 0x4BC9DABB, ["O"] = 0xF1301666, ["P"] = 0xD82E0BD2, ["Q"] = 0xDE794E3E,
        ["R"] = 0xE30CD707, ["S"] = 0xD27782E3, ["T"] = nil, ["U"] = 0xD8F73058, ["V"] = 0x7F8D09B8, ["W"] = 0x8FD015D8,
        ["X"] = 0x8CC9CD42, ["Y"] = nil, ["Z"] = 0x26E9DC00,
    
        -- Symbol Keys
        ["RIGHTBRACKET"] = 0xA5BDCD3C, ["LEFTBRACKET"] = 0x430593AA,
    
        -- Mouse buttons
        ["MOUSE1"] = 0x07CE1E61, ["MOUSE2"] = 0xF84FA74F, ["MOUSE3"] = 0xCEE12B50, ["MWUP"] = 0x3076E97C,
    
        -- Modifier Keys
        ["CTRL"] = 0xDB096B85, ["TAB"] = 0xB238FE0B, ["SHIFT"] = 0x8FFC75D6, ["SPACEBAR"] = 0xD9D0E1C0, ["ENTER"] = 0xC7B5340A,
        ["BACKSPACE"] = 0x156F7119, ["LALT"] = 0x8AAA0AD4, ["DEL"] = 0x4AF4D473, ["PGUP"] = 0x446258B6, ["PGDN"] = 0x3C3DD371,
    
        -- Function Keys
        ["F1"] = 0xA8E3F467, ["F4"] = 0x1F6D95E5, ["F6"] = 0x3C0A40F2,
    
        -- Number Keys
        ["1"] = 0xE6F612E4, ["2"] = 0x1CE6D9EB, ["3"] = 0x4F49CC4C, ["4"] = 0x8F9F9E58, ["5"] = 0xAB62E997, ["6"] = 0xA1FDE2A6,
        ["7"] = 0xB03A913B, ["8"] = 0x42385422,
    
        -- Arrow Keys
        ["DOWN"] = 0x05CA7C52, ["UP"] = 0x6319DB71, ["LEFT"] = 0xA65EBAB4, ["RIGHT"] = 0xDEB34313,
    },

    DeveloperMode = true, -- ๐Ÿ› ๏ธ Developer mode for debugging
    PresetTrusts = {
        boost = 0,
        moonshine = 0,
        breaker = 0,
        drugcooker = 0,
        drugfarmer = 0,
        gunner = 0,
        
    },
    MenuData = 'menuapi',
    SQLResource = "ghmattimysql",  -- ๐Ÿ“ฆ Resource for SQL operations
    Framework = "vorp" ,
    StoreEnabledOnlyNight = false,  -- ๐ŸŒ™ Store available anytime (if false)
    EnableCinematicMode = true, -- Enable Cinematic mode when on settings
    MaxTrustLevel = 1000,  -- ๐Ÿ† Maximum trust level
    ControlAction = "E",  -- ๐ŸŽฎ Control key to interact with the shop
    DistanceForAction = 2.0,  -- ๐Ÿ“ Interaction distance (2 meters)
    PromptText = 'Moonshine Shop',  -- ๐Ÿช Prompt text when near shop
    NotificationMessage = "You dont have access to this shop",  -- ๐Ÿšซ Message when no access to shop
    TriggerEventNotification = 'codex_core:notification',  -- ๐Ÿ“ข Notification event
    NotificationMessageTime = 4000,  -- โฐ Time for the notification to stay (in ms)
    AdvancedPrintMode = false,  -- ๐Ÿ“ Enable advanced logging
    RemoveTrustOnDeath = true,  -- โšฐ๏ธ Remove trust on player death
    RemoveAmmountOnDeath = 10,  -- ๐Ÿ”ฝ Trust points to remove on death
    TypeMoonshineRemoveOnDeath = "moonshine", --- Here you can define what player will lose , what kind of trust level the types are (moonshine, boosting)
    GiveItemQuantity = 1,  -- ๐ŸŽ Quantity of items given
    TrustToAccessShop = 1,  -- ๐Ÿ’ณ Minimum trust required to access shop
    toggleNuiFocus = 'toggleNuiFocus',  -- ๐Ÿ”„ Toggle NUI focus
    TrustLevel_remove = "remove_trust",  -- โž– Event to remove trust
    TrustLevel_add = "add_trust",  -- โž• Event to add trust
    MoneyType = "cash",  -- ๐Ÿ’ฐ Type of money used (cash)
    CashMoneyType = 0,  -- ๐Ÿ’ต Cash type identifier
    CentsMoneyType = 1,  -- ๐Ÿ’ธ Cents type identifier
    GoldMoneyType = 2,  -- ๐Ÿช™ Gold type identifier
    GetUiDataCommand = "getuidata",  -- ๐Ÿ“Š Command to get UI data
    Uisettings_command = "uisettings",  -- โš™๏ธ Command to open UI settings
    EnableOxTarget = false,  -- ๐ŸŽฏ Enable OxTarget (false for disabled)
    StablePromptsSystem = true,  -- ๐Ÿ”’ Enable stable prompt system
    AlwaysOpen = true,  -- ๐Ÿšช Shop is always open
    NightStart = 18,  -- ๐ŸŒ… Night start hour (6 PM)
    NightEnd = 6,  -- ๐ŸŒ‡ Night end hour (6 AM)
    AccessToStoreWith  = 'moonshine', --- if this is true the AccessToStoreWithMoonshineTrust must be false you cant use both!
    TrustShopPos = {
        ['Moonshine Shop'] = {
            label = 'Moonshine Shop',  -- ๐Ÿช Shop name
            ped = 'amsp_robsdgunsmith_males_01',  -- ๐Ÿ‘ค NPC model for the shopkeeper
            coords = vec4(-1850.24, -1739.08, 85.62, 74.02),  -- ๐Ÿ“ Shop coordinates (location and rotation)
            Items = { -- ๐Ÿ›’ Items available for purchase
                {
                    label = '๐Ÿ’ŠMoonshine Capsules',
                    name = 'p_baitBread01x',
                    amount = 2,  -- ๐Ÿ›๏ธ Maximum amount per session
                    price = 10,  -- ๐Ÿ’ต Price per item
                    trustRequired = 50,  -- ๐Ÿ’ณ Minimum trust to buy
                },
                {
                    label = '๐Ÿ’ŠMoonshine Drink',
                    name = 'lockpick',
                    image = 'lockpick_wagon',
                    amount = 25,  -- ๐Ÿ›๏ธ Maximum amount per session
                    price = 3,  -- ๐Ÿ’ต Price per item
                    trustRequired = 20,  -- ๐Ÿ’ณ Minimum trust to buy
                },
                {
                    label = '๐Ÿ’ŽPrivate Girl Show + 5 Moonshine Drinks',
                    name = 'p_baitBread01x',
                    image = 'provision_jewelry_box',
                    amount = 5,  -- ๐Ÿ›๏ธ Maximum amount per session
                    price = 25,  -- ๐Ÿ’ต Price per item
                    trustRequired = 75,  -- ๐Ÿ’ณ Minimum trust to buy
                },
            },
            globalbuys = true,  -- ๐ŸŒ Global purchase limit
            ShopNpc = nil,  -- ๐Ÿšซ Dynamically handled black market NPC
        }
    }
}
PreviousClient SideNextSQL

Last updated 1 month ago

Was this helpful?

๐Ÿ’…
๐Ÿ’ช