Compatibility
- Frameworks
- Standalone
- Game Mode
- FiveM

Free download (ad supported)
Free downloads are supported by a brief ad page (Linkvertise) to keep this service running.
Production server?
Browse paid scripts with instant delivery, support signals, and no ad step.
Are you looking to manage server access efficiently during specific time periods? The trt_lockdown script is the perfect solution, allowing you to control who can connect to your server when you want to enforce lockdown periods. Here’s how you can install and configure this resource.
What is trt_lockdown?
The trt_lockdown script allows you to set designated lockdown hours for your server. During these hours, only players who are whitelisted can connect. This feature is particularly useful for server administrators who want to maintain oversight over player access during specific times.
Key Features
How to Install the trt_lockdown Script
Installing the trt_lockdown script is straightforward. Just follow these steps:
Download the Script: You can find the trt_lockdown script on GitHub. Make sure to download the latest version.
Place It in the Resource Directory: Once downloaded, place the script folder in your server’s resource directory. This is usually located in your server files.
Edit the Server Configuration: Open your server.cfg file and add the line:
start trt_lockdown
This command ensures that the script starts when your server runs.
config/server file within the trt_lockdown script folder. Here, you can specify the lockdown hours, allowed identifiers, and Discord role checks. Configuration Options
In the configuration file, you can set the following options:
Here’s an example of how the lockdown settings look in the configuration file:
return {
versionCheck = true,
lockdown = {
enabled = true,
kickAllPlayers = true,
from = { hour = 3, minute = 15 },
to = { hour = 17, minute = 30 },
},
allowedIdentifiers = {
-- Add player identifiers here
},
discord = {
token = false,
guildId = '',
allowedRoles = {
-- Add allowed role identifiers here
}
}
}
Additionally, you can set permissions for certain players to bypass the lockdown with the following commands:
add_ace identifier.discord:xxx lockdown.bypass allow
add_ace group.mod lockdown.bypass allow
Simply replace identifier.discord:xxx with the correct identifier for the player.
Usage
Once set up, the script will automatically manage server access according to the lockdown times you’ve specified. Players trying to connect during a lockdown will receive a rejection message unless they are on the whitelist.
With the trt_lockdown script, you gain full control over when and how players access your server, making it an excellent tool for enhancing your server management. Don't forget to check out the GitHub repository for any updates or further customization options. Happy gaming!
Premium Alternative
Get premium scripts with dedicated support, lifetime updates, and one-click installation.
Quick answers based on the information published for Lockdown Script.
Have another question? Check the mod description above for more details.
Discover more resources for your FiveM or GTA 5 server.
Free mods are a good starting point. When your server needs stronger support, cleaner installs, and premium systems, move into the commercial hubs below.
Premium catalog
See paid scripts, framework labels, bundles, and install-ready products once the free version no longer covers your server needs.
Open premium shopMoney page
Add police, mechanic, gang, and economy systems around this mod with stronger commercial scripts.
See job scriptsLaunch faster
Bundles shorten setup time by grouping the highest-leverage systems into one commercial starting point.
View bundlesWritten by the FiveMX editorial team based on the current CitizenFX artifact and the target framework — not copy-pasted from the upstream post.
resources/[standalone]/lockdown-script on your server. Keep the resource folder name as-is — most manifests reference it verbatim.ensure lockdown-script to your server.cfg.ensure lockdown-script in the live console to confirm it loads without red errors. If you hit a dependency error, the mod probably needs ox_lib or ox_inventory — install those first, then retry.Other popular free mods you might find useful for your server.
Keep the download flow free, but compare production-ready scripts and server packs before this resource becomes part of a live roleplay stack.

This mod will make the streets european (German Roads)! Hand-crafted mod, for your server. With the Roads mod, you'll experience an authentic European feel with every step you take. Hand-crafted with precision and attention to detail, this mod is designed to give your server a unique touch
$4.49
View product
FiveM Anticheat script/mod | OPTIMIZED and perfect for ESX detects modders and ban them instantly. Many server owners struggle because of cheaters, modders and hackers. There are a couple of hacks and mod menus for FiveM and money hacks for ESX framework. ? Hackers are quite annoying but the
$21.99
View product
The #1 FiveM Jobs Creator Script - that allows server administrators to easily create generic jobs with many customizable interaction points.
$22.99
View product
100 luxury residential properties in Mirror Park with detailed interiors, custom exteriors, optimized FiveM streaming, and housing-script compatibility.
$6.99
View product