Dapler Docs
StoreDiscord
  • Welcome
  • SCRIPTS
    • Bridge
      • Installation
      • File Structure
      • Usage
      • Client-side Exports
      • Server-side Exports
    • Notify
      • Installation guide
  • Speech Recognition
    • Installation
    • Requirements
    • Configuration
    • Microphone Access
    • License and Conditions
    • Support
  • Events
Powered by GitBook
On this page
  1. SCRIPTS
  2. Bridge

Installation

Installation

How to Install dr-bridge?

To install dr-bridge in your project, follow these simple steps:

  1. Download dr-bridge:

    • Download or clone the dr-bridge repository from GitHub.

    • Place the dr-bridge folder into your resources/ directory of your FiveM server.

  2. Add to server.cfg:

    • Open your server.cfg file.

    • Add the following line to ensure the resource is loaded before other scripts that depend on it:

      ensure dr-bridge
  3. Start your server:

    • Start your server as usual, and the dr-bridge resource will be loaded and ready to use.


Basic Configuration

After installation, you can configure dr-bridge by editing the config.lua file located in the root directory of the dr-bridge folder. In this file, you can set various options, such as enabling/disabling debug logs.

  • Debugging:

    • Enable or disable debugging messages.

    • Example:

      Config.Debug = true -- Set to false in production

Make sure to configure these settings based on your server setup.


Adding dr-bridge as a Dependency in Other Scripts

If you want to use dr-bridge in other scripts, simply add it as a dependency in their fxmanifest.lua or __resource.lua files. For example:

  1. Open the fxmanifest.lua of the script you want to integrate with dr-bridge.

  2. Add dr-bridge as a dependency like this:

    dependency 'dr-bridge'

This ensures that your script will be able to access the functions provided by dr-bridge.

PreviousBridgeNextFile Structure

Last updated 2 months ago