Information:
This script provides a simple and efficient automatic door locking system for your FiveM server. It allows you to define specific doors on the map that will automatically lock or unlock based on predefined time conditions. The script is designed to enhance the role-playing experience by adding realism to the environment.
Framework Compatibility:
Customizable Door Locking: Define the doors you want to lock or unlock by specifying their coordinates, object name, and heading in the configuration file.
Time-Based Control: Doors automatically lock and unlock at specific times of the day, providing a dynamic and immersive experience.
Notification System: Utilizes a notification function to inform players when doors are locked or unlocked, enhancing the user experience.
Error Handling: In case of issues, the script prints error messages to the server console, helping administrators identify and address potential door-related bugs.
Configuration Settings:
Adjust the following parameters in the configuration file (Config.lua
) to suit your server’s needs:
LockDoorsAtCoords
: Define the doors with their coordinates, object name, and heading that you want to lock.Radius
: Set the radius for finding the closest object of the specified type.WaitTillNext
: Adjust the wait time between checks for time-based door locking/unlocking.WhitelistedTime
: Specify hours when doors should be unlocked.BlacklistedTime
: Specify hours when doors should be locked.
Usage:
- Install the script on your FiveM server. (put in the server.cfg “start bs_banklock” and then refresh and start)
- Configure the doors and time settings in the
Config.lua
file. - Ensure that players receive appropriate notifications when doors are locked or unlocked.
- Adjust the wait time based on the server’s performance and requirements.
Preview
There are currently only two Doors in the config mabye will add later the function that you can add doors by aiming at them just like the bs_doorram script
bs_banklock.zip (2.5 KB)
Old Versions
Version 1.0
bs_banklock.zip (2.0 KB)
Other Scripts and Models
Other BS-Scripts
[ STANDLONE | PAID ] Blue Style Development Gang Aggression
[ Standlone | Paid | Model | Add-On | Extras ] Karin Asterope 18C
[ Standlone | Paid | Script | Escrow and Closed source ] Heartbeat Check Resource Script
[ Standlone | Paid | MLO ] Societypack MLO
[ Standlone | Paid | Add-On ] Add-On M18 + Add-On Attachments + Hud GFX included
[ Standlone | Paid | Add-On ] Add-On AR - 15 + Add-On Attachments
[ STANDLONE| FREE ] Camera Lock Script
[ ESX | FREE ] Burgershotjob Script
[ STANDLONE | PAID ] Gang Member Spawner Script
[PAID | ESX/QBCORE/STANDLONE | WIP] Border Control Job
[PAID | Add-On | Standlone ] Barbetta M9A3
[PAID | Add-On | Standlone ] Hecller und Koff G28
[PAID | Add-On | Standlone ] Tec-9
[PAID | ESX ] Blue Style Airsoft
[PAID | Add-On | Standlone ] Sig Sauer MPX
[PAID | Add-On | Standlone ] MK18 + Component
[PAID | Add-On | Standlone ] PPK + Component
[FREE | Standlone] New Bike Idle Anim
[PAID | Add-On | Standlone ] AK-12 + Component
[PAID | Add-On | Standlone ] MAC-10 + Component
[PAID | Add-On | Standlone ] P99 + Component + Weapon Wheel Image
[FREE | MLO ] Blue Style Paleto Electric MLO
[FREE | ESX ] BS car colour / car tinting
[PAID | Add-On | ESX | UPDATE ] Doorlock + Lockpicking Doorlock
[PAID | Add-On | Standlone ] Glock 30 with Attachments
[PAID | Add-On | Standlone ] UMP-45 with Attachments
[PAID | Add-On | Standlone ] M4A1 with Attachments
[PAID | Add-On | Standlone ] RPD
[PAID | Add-On | Standlone ] M249 with Attachments
)
[PAID | Add-On | Standlone ] Mossberg 590 with Attachments
[PAID | Add-On | Standlone ] Spas 18 - #5 by Blue_Style_DEV
[PAID | Add-On | Standlone ] Smith & Wasson M&P with Attachments
[PAID | Add-On | Standlone ] P90 with Attachments
[PAID | Add-On | Standlone ] Karabine 98k with Attachments
[Paid | Add-On | Standlone | Ped] Boblox Character
[PAID | Add-On | Standlone ] MP5A3 Attachments Fixxed Model
[PAID | Add-On | Standlone ] CheyTac M200 with Attachments
[PAID | Add-On | Standlone ] MP9 Attachments Fivem Ready
[PAID | Add-On | Standlone ] M16 with Attachments
[PAID | ADD-ON Weapon] Walther P88
[PAID | ADD-ON WEAPON] Weapon Barrett M107A1 - #3 by Blue_Style_DEV
[PAID | STANDLONE] Weapon Airsoft M1911
Script is accessible | Yes and No |
Subscription-based | No |
Lines | 56 |
Requirements | None |
Price | free |