Doorlocking Configuration

This guide explains how to correctly install and configure C7 Simple Doorlock on your FiveM server. Follow each step carefully to ensure the framework loads and functions as intended.

01. Installing the Resource

1

Download the latest release of the C7 Simple Doorlock;

This folder should contain the folder: c7-scripts-doorlock

2

Download the latest release of C7 Notifications;

You can download this for free on our shop. Click here for the link to this resource.arrow-up-right

3

Extract the .zip file's

4

Place the folders into your server's resource directory

Your resources folder should look like the following:

resources/
└── [c7-scripts]
    └── c7-scripts-notificaitons
    └── c7-scripts-framework-v3 (if installed)
    └── c7-scripts-doorlock
circle-exclamation

02. Adding to 'server.cfg'

Add the following line to your server.cfg, preferably after your MySQL and connection resources:

ensure c7-scripts-framework-v3 (if installed)
ensure c7-scripts-notifications (start first)
ensure c7-scripts-doorlock

03. Script Configuration

Altering the script to your preferred configuration has been made easy with our configuration file. To get started, you need to open the file: c7-scripts-doorlock/shared/config.lua

1

Configuring the Basics

To change the basics of the script, you need to change the following configuration lines:

2

Configuring Discord Integration

You must change the following lines:

3

Configuring Doorlock Admin Access

You must change the following lines:

4

Configuring Discord Webhoks

You must change the following lines:

5

Configuring Doorlock Defaults

You must change the following lines:

6

Configuring Doorlock Sounds

You must change the following lines:

circle-info

You can add your own custom sounds into /nui/sounds/

This must be a .ogg file

05. In-Game Commands & Keybinds

  • /doorlock - This will open the Doorlock UI

  • E will unlock and lock a door.

Last updated