Doors Creator [ESX / QBCore]
Hi everyone
Today I present you my new script, a doors creator
This script will allow server administrators to easily create doors through an in-game menu, and to choose the rules for the doors
Showcase video
Features
Doors
- Uses the GTA 5 doors system, very optimized
- You can easily create as many doors as you want
- You can name each door so you will be able to identify them
- You can extremely easily select the door you want
- You can choose multiple doors (example for double doors)
- You can choose gates as well
- You can choose the default state of the door (locked/unlocked)
- You can choose the maximum distance where players will be able to lock/unlock the door
- You can choose the icon coordinates very easily
- Doors can require the player to have a specific job and rank to lock/unlock it
- Doors can require the player to have a specific item to lock/unlock it
- You can choose that the players requires or not to have both job and item
- Doors can require a code (both pin or password)
- Doors can require the player to have a specific identifier, this is useful to create private doors for players
- Doors can have auto closure, so if a player unlocks it, it will automatically lock after X seconds
- Doors can be bound to a building, so they will follow the building rules instead of the specific door rules (more information below)
- For QBCore, there is gangs support as permissions
- You can set that when a door is lockpicked, the police is alerted
Buildings
- Buildings can be intended as categories of doors
- You can create as many buildings as you want
- Buildings will be an easy way to edit the rules of many doors in few seconds
- You can define the building rules (allowed jobs, required item, etc.) and all doors of the building will use those rules
- Using buildings will allow you to bulk edit doors rules later, without having you to edit all doors rules
Vault doors
- Vault doors will make the doors to open/close without a player needing to push it (useful for example in pacific bank vault)
- You can adjust the speed of opening/closing
- You can use custom angles, allowing you to adapt it to any door
- You can use either ratio or heading, allowing you to use vault doors on all doors you want
- When using heading option, there will be an easy button which helps you to find the best heading for your purposes
Other
- You can enable/disable door lock animation and you can edit it
- You can edit the dimensions of the lock icon
- You can edit easily change the icons image and colors
- You can enable/disable to save doors status (locked/unlocked) after the server restart
- You can choose an item to let player to lockpick locked doors
- You can choose for each door if it will be lockpickable or not
- Admins can bypass the doors lock by using
/togglelock
command
Installation
- Download the script.
- Extract wherever you want into your resources.
- Add ACE permission
doors_creator
to allow admins using the script (example below). - Add
ensure doors_creator
in your server.cfg
How to add ACE permission?
You should place this in server.cfg, and editing it with your license
add_ace group.admin doors_creator allow # Add permission to group
# Can also be identifier.steam:steamid
add_principal identifier.license:1260e6efd3271584d7ed05n45cbf41575252acbc group.admin # Add player to the group
If you didn’t add the permission, the doorscreator command will show you exactly what you need to copy paste in server.cfg, with your license included!
Requirements
- A database and a script to connect to it (Example mysql-async )
- es_extended or QB-Core depending on which framework you will use
Download
If you are interested in the script you can find it here
Information
The script uses the official FiveM escrow system