rcore.cz
  • rcore.cz
  • Store
  • Discord
  • Web administration
  • Our store
  • YouTube
  • 🐌CFX Auth system
    • CFX Auth system
    • Transfer script to another account
    • Error: You lack the required entitlement
    • Error: syntax error near '<\1>'
  • Server
    • Updating server
    • onesync
  • Administration
    • How to change IP
    • Forgot your password?
  • FAQ
    • General issues
    • Cannot verify license
    • Cannot hear any music
    • ECONNRESET: Unable to execute a query
  • paid resources
    • 🏑rcore_airhockey
      • How To Play
      • Spawning a Hockey Table
    • 💪rcore_armwrestling
      • How to place arm table
    • 🎴rcore_banners
      • How to Begin
      • How to Update
      • Common issues & solutions
      • Installation
      • Inventory Items
      • Configs
        • General
        • Billboards
        • Business
        • Permissions
        • Job
        • Config
      • Guides
        • How to change UI logo?
        • How to create new server banner?
        • How to create business?
        • How to buy billboard?
        • How to place banner?
        • Cannot see banners?
        • Expired images
      • API
    • 🏀rcore_basketball
      • Configure new hoop
    • 🏓rcore_beerpong
      • How to use
    • 📹rcore_bodycam
      • Integration
      • Anticheat
      • Recordings don't save
    • 🎳rcore_bowling
      • Configure new alley
    • 🎥rcore_cam
      • Integration
      • Anticheat
    • ⛺rcore_camping
      • Installation
      • Config
      • Consumable Beer
      • OX Inventory
      • Frameworks
      • API
    • 🎪rcore_carnival
      • Create new minigame
    • 🃏rcore_casino
      • Installing Maps
        • UncleJust Casino
        • DlcIplLoader
        • Gabz Casino
        • NoPixel Casino
        • K4MB1 Casino
        • rcore_casino_interior
        • Underground Casino Paleto
        • K4MB1 Enterable Diamond Casino
        • Patoche Casino
        • Clawles: Casino Los Santos
        • Molo Casino
        • Jurassic Jackpot Casino
      • Standalone Version
      • Custom Framework
      • Installing on QBCore
      • Installing on ESX
      • Installing Inventory Items
      • The Cashier
      • Society
      • Lucky Wheel & Podium Vehicle
      • Table Games
      • Slot Machines
      • Casino Bar
      • Inside Track
      • Translations
      • Discord Hook
      • MYSQL Info
      • CasinoControl (Exports)
      • Casino Job & Office
      • Changing Odds
    • 👕rcore_clothes
      • Dark theme
      • Adding a new clothes shop
      • Components
      • Restriction for certian job
      • Custom clothes price
      • Clothes blacklist / Whitelist
      • esx_accessories
      • qb_apartments
      • cui_character
      • API: Open outfits
      • API: Open clothes shop
    • 🎽rcore_clothing 🆕
      • How to begin
      • Installation
      • Migration
      • Configs
        • Main config
        • Price config
        • Shop config
        • Peds config
        • Undress clothes
      • FAQ
      • Admin mode
        • Modes
        • Image debugging
        • Stock management
      • Adding replace/addon clothes
      • Categorize clothing automatically
      • API
      • Troubleshooting
      • Integration
        • Multichar integration guide
        • esx_multicharacter
        • esx_multicharacter OLD
        • qb-multicharacter
        • crm_multichar
        • codem_multichar
        • okok_multichar
        • qbox_multichar
        • ESX vms_multichar
        • QB vms_multichar
        • qs-multicharacter
        • um_multichar
        • wais_multicharacter v2
        • zr_multichar
        • zsx_multicharacter
    • 💃rcore_dance
      • Installation
      • Config
      • FAQ
      • Troubleshooting
      • API
    • 📱rcore_dispatch
      • Config
      • Add alerts
      • Add jobs
      • Locales
      • Logs
      • Integrations
      • Framework
      • Voice and radio
    • 🔒rcore_doorlock
      • Installation
      • Configuration
      • Migration
      • Business
        • Configuration
        • Locksmith Example
      • Inventory Items
      • Keychain
      • API
    • 🍺rcore_drunk
      • How to place drink on table
      • Create new item drink
      • ox inventory
      • API
      • How to use
    • 🥚rcore_easter
      • Installation
      • Configuration
      • API
    • ⛽rcore_fuel
      • Installation
        • ESX
        • QBCore
      • Inventory
        • ESX
        • QBCore
        • ox_inventory
      • Config
        • New fuel station
        • Change fuel type for vehicle
        • Change fuel capacity for vehicle
        • Setting fuel station to be ownable
        • Wrong fuel type
        • Change gas price
      • Integrations
        • API
        • Vehicle keys integrations
        • Hud/Garage integration
      • Server
        • Commands
    • 🔫rcore_gangs
      • API
        • Client
        • Server
      • Integration
        • Framework
        • Inventory
        • Dispatch
      • Localization
      • Configuration
        • Custom gang zone
    • 🚙rcore_garage
      • qb-phone missing garages name
      • missing screenshots
    • 📙rcore_guidebook
      • Installation
      • Config
      • Data permissions
      • API
      • Themes
      • 📙V1 Docs
        • Installation
        • API
        • Themes
    • 🔫rcore_gunshop
      • QBCore Installation
      • ESX Installation
      • How to change pricing
      • How to enable sales of weapons
      • Enabling MK2 weapons on QBCore
      • Adding the ammunation job for QBCore
      • Adding the ammunation job for ESX
    • 🎯rcore_gunrange
      • Installation
      • API
      • Troubleshooting
      • Frequently Asked Questions
      • Gun Range Editor
    • 🏨rcore_hotel
      • How to add another hotel example
      • esx_inventoryhud
      • Quasar inventory
      • OX inventory
      • MF inventory
      • Custom wardrobe
    • 🧑rcore_identity
      • How to change date format
      • esx_kasharacter
    • 🟠rcore_job_blips
      • Installation
      • Configuration
      • Blip Setup
      • Group Setup
      • API
    • ⛳rcore_minigolf
      • Builder
      • Company
      • Config
    • 🚛rcore_missionpack_legal
      • Migrate from old version
    • 🚗rcore_pdm
      • Missing images
      • Blips on minimap
      • Vehicles in stock
      • Missing vehicle names
      • Edit the speed of the vehicle in UI
      • Boss menu + locations
      • Displayed vehicle in the shop
      • How to add a vehicle with a new category
      • QBCore
        • Import missing vehicles from qbcore to rcore_pdm
        • Job data for QBCore framework
        • Import vehicles from database to qbcore
    • 🏓rcore_pingpong
      • How To Play
      • Spawning a Pong Table
      • Match Settings
    • 🤽‍♀️rcore_pool
      • Anticheat
      • How to place pool table
    • 👮rcore_police
      • Installation
      • How to Update
      • Features
      • Inventory
      • Deployer
      • Configs
        • Main Config
      • API
        • Client
        • Server
    • ⛓️rcore_prison
      • Migration from V1
      • How to Begin
      • How to Update
      • Installation
      • Inventory items
      • Configs
        • Main Config
      • Guides
        • Deployer
        • Changing minigame for Cigarette packaging
        • Changing Prison jobs reward
        • Configuring Permissions
        • How to translate in-game panel
        • How to define own stats for Prison GYM?
        • How to define/change default Prisoner outfits?
        • How to define own Prison map?
      • Features
        • Prison Break
        • Solitary
        • Cigar packaging
        • Canteen
        • Dealer
        • Dashboard
        • Chair system
        • Prison Prolog
      • Integrations
        • Inventory
        • Inventory items
      • API
        • Client
        • Server
      • ⛓️V1 Docs
        • Config
        • Inventory
        • API
          • Client
          • Server
        • Locales system
        • Interiors presets
        • Camera prolog
        • Outfits
    • 📻rcore_radiocar
      • API
        • Radio item
        • Marker for buying radio
    • 📋rcore_report
      • Installation
      • API
      • Ace Permissions
      • Config
      • UI Config
      • Features
      • Console Logs
      • Custom Data
      • Responsivity
    • 🏪rcore_shops
      • Add new shop
      • How to add weapon
      • Hide blip on minimap / map
      • Restrict shop to certain job
    • 🔠rcore_shortcuts
      • API
      • Commands and Hotkeys
      • Permissions
      • Notifications
      • Limits
      • Styles
    • ✨rcore_spray
      • ESX instalation
      • QBCore instalation
      • OX Inventory instalation
      • How to add a new image
      • How to add a new font
      • Gang integration
      • Anticheat
    • 📈rcore_stats
      • Installation
      • Permissions
      • Configs
        • Main config
        • Performance
        • Units
        • Other
      • Translation
      • Changing Default Values
      • API
        • Integration
        • Delete
        • Other
    • 👹rcore_tattoos
      • Installation
      • Migrations
      • Add-on tattoos
      • Config
      • Custom Framework
      • Design
      • Tattoo config options
      • Tattoo permissions
      • Troubleshooting
      • API
      • Integrations
        • qb-gangs
      • Business update
        • Config
        • Simple Business
        • Business with jobs
        • Default settings
    • 📺rcore_television
      • How to add a new television
    • 🔧rcore_tuning
      • Editing your config
      • Configuring your framework
      • Job integration
      • Item integration
      • Editing tuning prices
    • 📋rcore_whiteboard
      • Whiteboard type & data
      • Position editor
      • API
      • FAQ
    • 🎁rcore_xmas
      • Installation
      • Configuration
      • Inventory Items
      • Snowball Damage
      • API
    • 📻xradio
      • API
      • Custom menu
      • Ox inventory
  • free resources
    • rcore_arcade
      • How to add msdos games
Powered by GitBook
On this page
  • Debug
  • Bridge
  • Locales
  • Admin groups
  • Presets
  • Gangs
  • UsableInventoryItems
  • Commands
  • DrawText
  • Cooldown
  • Keybind
  • Target
  • Items
  • CardReader
  • Lockpicking
  • Hacking

Was this helpful?

  1. paid resources
  2. rcore_doorlock

Configuration

Debug

If you have any issue with our script, set Debug = true in configuration file ([rcore_doorlock]/rcore_doorlock/config.lua) to see additional informations in client console (F8) and server console. Screenshots will help our support to solve faster and better your problem in ticket.

Bridge

All bridge resources should be auto detectable without editing config. If there is any unexpectable issue in console with bridge, go to [rcore_doorlock]/rcore_doorlock/config.lua and edit bridge properties by your server specifications.

Framework = Framework.AUTO_DETECT, -- [ESX - es_extended, QBCore - qb-core, Standalone - standalone]
Inventory = Inventory.AUTO_DETECT, -- [OX - ox_inventory, QB - qb-inventory, QS - qs-inventory, MF - mf-inventory, PS - ps-inventory, LJ - lj-inventory, CORE - core_inventory, CHEZZA - inventory, CODEM - codem-inventory, ORIGEN - origen_inventory, TGIANN - tgiann-inventory, NONE - none]
Database = Database.AUTO_DETECT,   -- [OX - ox_mysql, MYSQL_ASYNC - mysql-async, GHMATTI - ghmattimysql]
Target = Target.AUTO_DETECT,       -- [NONE - none, OX - ox_target, QB - qb-target, QTARGET - qtarget]
Society = Society.AUTO_DETECT,     -- [ESX - es_extended, QBCore - qb-core]

Standalone (None) Bridge If you want to make your own integration, you can implement your own API methods in [rcore_doorlock]/rcore_doorlock/server/modules/bridge/<bridge>/sv-standalone.lua .

There is no option to have few features without having one of the bridge resources on your server. You are going to loose those features:

  • Anything job related

    • Players won't be able to open doors with jobs

    • Locksmith jobs won't work properly

  • Anything money related

    • Locksmith crafting will be free

Locales

You can choose one of our translations in [rcore_doorlock]/rcore_doorlock/locales or translate english one by yourself. Every single text is located in there.

Locale = 'en',

Admin groups

Defines the admin groups for each framework. Admins in these groups can use commands like /doors and /doorsadmin.

FrameworkAdminGroups = {
    [Framework.ESX] = { 'superadmin', 'admin' },
    [Framework.QBCore] = { 'god', 'admin' },
},

Presets

File of preset to load on script initialization. Each preset file can be loaded only once and you won't be able to load it again after ensuring script.

Presets contains preconfigured doors for base GTA 5 maps, custom maps or any community presets.

Gangs

Whether use rcore_gangs or qb-core gangs.

RCoreGangs = true,

UsableInventoryItems

This setting allows the use of item in inventory, such as keys or cards, to interact with doors. If set to false, these items will not be usable when pressing use in your inventory.

UsableInventoryItems = true,

Commands

Defines the commands for doors UI and toggling admin mode.

Commands = {
    Doors = 'doors',
    AdminMode = 'doorsadmin',
},

DrawText

Enables or disables the display of text when interacting with doors.

DrawText = {
    Enabled = true,
    Font = 4,
},

Cooldown

Sets the cooldown time (in milliseconds) between interactions.

Cooldown = 500,

Keybind

Defines the key used to interact with doors. Default is 'e' on the keyboard.

Keybind = {
    Enabled = true,
    Mapper = 'keyboard',
    Key = 'e',
},

Target

Sets the target interaction distance and icon for door interaction.

Target = {
    Distance = 1.5,
    Icon = 'fa-solid fa-lock',
},

Items

Defines the items used to open doors, such as keys and access cards, along with the animations.

Items = {
    Key = {
        Item = 'door_key',
        Animation = {
            Dict = 'mp_common',
            Name = 'givetake1_a',
            Duration = 1000,
            PlayAlways = true,
        },
    },
    Card = {
        Item = 'door_card',
    },
},

CardReader

Defines the configuration for card readers, including models, animations, interaction distances, and visual feedback textures.

CardReader = {
    Card = {
        Model = 'rcore_doorlock_card_animated',
        Animation = {
            Dict = 'clip@rcore_doorlock_card_animated',
            Name = 'rcore_doorlock_card_animated',
        },
    },
    Reader = {
        Model = 'rcore_keycard_control',
        Offset = vector3(0.04, 0.0, 0.0),
        Card = {
            Target = {
                Distance = 5.5,
                Icon = 'fa-regular fa-address-card',
            },
        },
        PinCode = {
            Target = {
                Distance = 5.5,
                Icon = 'fa-solid fa-keyboard',
            },
        },
        MaxDistanceDoor = 5.5,
        Textures = {
            Default = 0,
            Success = 1,
            Error = 2,
        },
    },
},

Lockpicking

Configures the lockpicking system, including required items, minigame settings, and alert chances for the police.

Lockpicking = {
    Enabled = true,
    Item = 'lockpick',
    RemoveOnTry = true,
    Target = {
        Icon = 'fas fa-screwdriver',
        Distance = 2.5,
    },
    Minigame = {
        Speed = 4,
        Lives = 3,
        Keys = {
            { 'E', 'KeyE' },
            { 'R', 'KeyR' },
            { 'T', 'KeyT' },
            { 'D', 'KeyD' },
            { 'F', 'KeyF' },
            { 'G', 'KeyG' },
        },
        MaxFails = 4,
        NeededPicks = 3,
    },
    Alert = {
        Enabled = true,
        Chance = {
            Enabled = true,
            Min = 1,
            Max = 100,
        },
        Jobs = { 'police' },
    },
},

Hacking

Defines the hacking system configuration, including the minigame, item required, and alert chance for police intervention.

Hacking = {
    Enabled = true,
    Item = 'hacking_device',
    RemoveOnTry = true,
    Target = {
        Icon = 'fas fa-laptop-code',
        Distance = 2.5,
    },
    DistanceInteraction = 2.5,
    Minigame = {
        Levels = {
            {
                lives = 3,
                difficulty = 1, -- [1 - 6]
            },
        },
    },
    Alert = {
        Enabled = true,
        Chance = {
            Enabled = true,
            Min = 1,
            Max = 100,
        },
        Jobs = { 'police' },
    },
},
PreviousInstallationNextMigration

Last updated 7 months ago

Was this helpful?

🔒