🚪 [ESX/QBCore] Doors Creator - Easily create doors in-game

:door: Doors Creator [ESX / QBCore]

Hi everyone :grin:

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

  1. Download the script.
  2. Extract wherever you want into your resources.
  3. Add ACE permission doors_creator to allow admins using the script (example below).
  4. 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

My other resources

22 Likes

This script looks great, I can’t wait to buy it :smiley:

4 Likes

good job. this looks great

3 Likes

Thank you :grin:
I hope you’ll like it :+1:

3 Likes

can you lock/hack doors?

3 Likes

Hi, yes you can lockpick doors, I suggest you to look here [ESX][QB-Core] Doors Creator 1.0 (FiveM script) - YouTube

2 Likes

is it possible that the UNLOCKED icon moves with the door when it opens. Would look nicer than the icon staying in the middle and walking through it I think.

4 Likes

Hi, actually it’s not possible to move the door icon, I suggest you to find a good position for it, as for example higher than the door :+1:

2 Likes

The script has everything I want from a doorscript and a bit more. Many thanks for this. I already love it and don’t want to miss it.
:star: :star: :star: :star: :star:

4 Likes

Thank you, I’m glad you love it :heart:

2 Likes

hey man what about custom doors made for mlos that dont use default gta 5 doors

4 Likes

Hi, you can use /getClosestDoor command and check F8 :+1:

2 Likes

Is there a possibility, like the drugs creator, to use your own dispatch when a gate is cracked open?

Jaksam at it again with another amazing release! Keep up the great work Bro :smiley:

1 Like

Hi, thank you very much :heart: , I’m glad to see you here :grin:

2 Likes

Update 1.1.1

  • Now it’s possible to edit the function if the player has the correct job in sv_integrations.lua
  • Added many doors in doors_list.json
  • Fixed doors that could’t be loaded
  • Fixed the bug that didn’t load the jobs in the menu
  • Fixed the bug that didn’t load the doors from the database in the menu
  • Made it more easy to add new models for the doors, directly when you select the door (you can press H to add new doors)
  • Added check when lockpicking a door if the door is already opened
  • Added documentation for the script
1 Like

Hello, just wondering how optimized this is what’s the CPU Msec with ~20 doors registered?

1 Like

Hello, it’s 0.00ms when far from doors and 0.03ms when close

2 Likes

Thanks does it work for custom doors aswell? specifically the one where it picks the props (highlights in yellow)?

1 Like

Yes you can add custom models easily when choosing doors

1 Like