Before installing the BHD Bridge, make sure the following dependencies are downloaded and added to your resources folder:
- ox_lib
- oxmysql
Ensure these dependencies are started before the BHD Bridge in your server.cfg:
ensure ox_lib
ensure oxmysql
- Download the BHD Bridge: Obtain the latest version of the BHD Bridge from your source.
- Place in Resources: Move the
bhd_bridgefolder into your server'sresourcesdirectory.- Important: To avoid boot order issues, do not place the bridge within a subfolder.
In your server.cfg, ensure that the BHD Bridge is started after your framework and target scripts, but before any scripts that depend on it:
-
For ESX Framework:
ensure es_extended ensure ox_target # or your target script ensure bhd_bridge -
For QB-Core Framework:
ensure qb-core ensure qb-target # or your target script ensure bhd_bridge -
Note: Start the bridge after any scripts it may use exports from, such as inventories or targets.
After configuring your server.cfg:
- Restart Your Server: Apply the changes by restarting the server.
- Check Console for Errors: Monitor the server console to ensure there are no errors related to the BHD Bridge or its dependencies.
By following these steps, the BHD Bridge should be correctly installed and operational on your server.