Documentation

Setup

Install and configure the bollards beta.

View on Store

#Download

Download these from your CFX portal under Granted Assets:

  • Zyke's Smart Bollards, the zyke_bollards resource.
  • Zyke's Smart Bollards (Assets), the zyke_bollards_assets resource. It streams the bollard, terminal, and signal models and is required.

If a resource is missing from your portal, see Lacking Entitlement.

#Dependencies

Install oxmysql and zyke_lib. Configure the framework and inventory providers in zyke_lib. See Dependencies.

#Resources & Items

Place both zyke_bollards and zyke_bollards_assets in your server's resources folder. Keep the folder names as they are.

Items are only needed for item access and access cards. Copy the matching definitions from zyke_bollards/extras/items/ox_inventory.txt or zyke_bollards/extras/items/qb-core.txt into your configured inventory. Copy the icons from zyke_bollards/extras/items/images/256/ into the inventory's image directory. The bundled definitions include bollard_keycard and bollard_access_card.

Keep bollard_access_card non-stackable/unique so each card retains the terminal it was issued at.

#Sounds

The motor sound is bundled in zyke_sounds 0.7.5 and newer. Keep zyke_sounds up to date and there is nothing to copy. On an older zyke_sounds, copy zyke_bollards/extras/sounds/bollards into zyke_sounds/nui/sounds/ and restart zyke_sounds. See Sounds From Other Resources.

#Configuration

Edit shared/unlocked/config.lua. Review the admin permission, terminal PIN rules, and traffic settings. Use the Config reference for current defaults.

Bollard groups are created in game from the Admin Menu, not in the config.

Custom access restrictions, such as duty status or gangs, belong in server/unlocked/access.lua.

#Start Order

Start your configured providers and their dependencies before Bollards:

cfg
ensure oxmysql
ensure zyke_lib
ensure zyke_sounds
ensure zyke_bollards_assets
ensure zyke_bollards

The zyke_bollards_groups table is created on first start.

#Verify Gameplay

Open /bollards, add a group, place a row and a terminal, and save. Aim at the terminal, press E, and raise the bollards. Use /bollardtraffic to send AI cars at the row and confirm they stop.