Setup
Install and configure the bollards beta.
#Download
Download these from your CFX portal under Granted Assets:
- Zyke's Smart Bollards, the
zyke_bollardsresource.- Zyke's Smart Bollards (Assets), the
zyke_bollards_assetsresource. 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_bollardsandzyke_bollards_assetsin 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.txtorzyke_bollards/extras/items/qb-core.txtinto your configured inventory. Copy the icons fromzyke_bollards/extras/items/images/256/into the inventory's image directory. The bundled definitions includebollard_keycardandbollard_access_card.Keep
bollard_access_cardnon-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_soundsup to date and there is nothing to copy. On an olderzyke_sounds, copyzyke_bollards/extras/sounds/bollardsintozyke_sounds/nui/sounds/and restartzyke_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:
cfgensure oxmysql ensure zyke_lib ensure zyke_sounds ensure zyke_bollards_assets ensure zyke_bollardsThe
zyke_bollards_groupstable 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/bollardtrafficto send AI cars at the row and confirm they stop.