BKing Development Documentation
Our StoreOur Discord
  • 👋Welcome to BKing Development
  • 🛡️Tebex FiveM Escrow System
    • ⬇️Downloading Resources
    • ⚠️Errors
    • 🏗️Installing Resources
  • 💵Paid Resources
    • Rescue Tools
      • Commands
      • Showcase Video
    • Heli Winch
      • Commands
      • Advanced Configuration
      • Showcase Video
      • Multiplayer Video
    • Tripod Winch
      • Commands
      • Basket Showcase Video
      • Showcase Video
    • Medic Props
      • Boots Upgrade
      • Commands
      • Showcase Video
    • Sepura SC20 Radio
      • Commands
      • Video Showcase
    • Rat Trap
      • Video Showcase
    • Metal Detector Wand
    • Zipties
    • Better Taser
      • Commands
    • Police Essentials
      • Commands
    • obMethodOfEntry
      • Commands
      • Showcase Video
    • obCrowds
      • Commands
    • Bifold Doors
    • Uniform Menu
Powered by GitBook
On this page
  1. Paid Resources

Bifold Doors

Bifold Doors is a resource that allows you to add bifolding doors to your buildings. This requires you to already have the model.

This resource is installed like any other resource. See our Installing Resourcespage for help here.

This resource requires configuration, and a model of a quarter of the bifolding door, to work. If you have been directed here by another shop then they will likely have provided the model to you already, and perhaps even the configuration files.

Configuration

The resource controls 1 bifolding door at a time, so to have multiple bifolding doors you should run multiple versions of the resource at the same time.

The configuration file

Config.password toggles whether the door requires a password for the command to open the door

Config.passcode defines the password to use if you wish to use a password and password is enabled.

Config.UniqueIdentifier should be used where you are using multiple bifolding doors, so you are using multiple copies of the script running at once. This must be unique to each resource, for example the first copy could be "Bifold1" and the second could be "Bifold2".

Config.DoorModel is the spawn code for the quarter segment of the bifolding door that the script will spawn 4 times to make all 4 parts of the door.

Config.DoorCommand is the command that is used to open the door. This must be unique to each copy of the resource, similar to the UniqueIdentifier.

Config.DoorModelWidth is the width of the door segment model. This can be found in your modelling program if you made the door, or the shop that provided the model to you should provide this value if they do not provide the config file.

Config.DoorHeading this is the direction that the door faces.

Config.DoorXPosition is the X coordinate for the far left hand side of the door.

Config.DoorYPosition is the Y coordinate for the far left hand side of the door.

Config.DoorZPosition is the Z coordinate of the far left hand side of the door.

Config.DoorZOffsetPosition sometimes when the door opens, it moves up when it starts opening. Use this number to offset the door when the door starts opening. Typical values are between 0.0 and 8.0.

Config.DoorSpeed is the speed at which the door opens. This value is the mathematical degree that the angle of the doors increases/decreases by every frame.

Config.DoorOpenTime this is the amount of miliseconds that the door holds open for, before beginning to close.

Config.DoorOpenPrompt this is the text that shows in the top left of you screen when you are near a control panel.

Config.ControlPanels = {
    {["x"] = -747.16, ["y"] = -1511.34, ["z"] = 4.88, ["dist"] = 3.0}, -- the XYZ coordinates and distance you have to be within for control panels to open the door
    {["x"] = -739.11, ["y"] = -1502.55, ["z"] = 5.0, ["dist"] = 3.0}. -- an example of a second entry
}

PreviousCommandsNextUniform Menu

Last updated 7 months ago

Config.DoorOpenKey this is the control ID that you use to open the door when near a control panel. A list of all control IDs can be found here:

💵
https://docs.fivem.net/docs/game-references/controls/