Envi Scripts Documentation
  • 👋Introduction
  • 🌉Envi-Bridge
  • ⚙️Compatibility
  • 🖨️Licensing
  • 📒Premium Scripts
    • ❔FAQ / COMMON ISSUES
    • ‼️FIRST STEPS (READ FIRST)
    • ⭐Useful Resources
    • 👀Envi FiveM Showcase Server
    • 💊Envi-Addictions
      • ❗First Time Setup
      • Inventory Setup
      • Exports and Commands
      • Config File
    • 📸Envi-Camera
      • ❗First Steps
      • Inventory Setup
      • Editable Functionality
      • Complete Lens Kit
      • Printing Photos
      • Ped Reactions
      • Exports
      • Config File
    • 🪚Envi-ChopShop
      • Inventory Setup
      • How to Chop
      • Props for AntiCheats
      • Editable Functionality
      • Config File
    • 🪣Envi-Dumpsters
      • Common Issues
      • Inventory Setup
      • Editable Functionality
      • Exports
      • Exclusive Zones
      • Survival Items
      • Shopping Carts
      • Hobo Bowling
      • Hobo Taxi
      • Rats and Racoons
      • Config File
      • V2 Config
    • 💺Envi-Ejector-Seats
      • Inventory Setup
      • How to Eject
      • Editable Functionality
      • Config File
    • 🔥Envi-Flamethrower (Standalone)
      • Common Issues
      • Inventory Setup
      • Refueling
      • Editable Functionality
      • Config File
    • 🪽Envi-Flight-Suits
      • Inventory Setup
      • Flight Suits
      • Config File
    • 🍜Envi-Food-Truck
      • ❗VooDoo Required
      • Common Issues
      • Inventory Setup
      • Adding Additional Grill Items
      • Unique Shops with Liveries
      • Spawning the Trucks
      • Using the Trucks
      • Exports
      • Config File
    • 💍Envi-Forever-Rings
      • Inventory Setup
      • Editable Functionality
      • Ring Shop MLO
      • Config File
    • 💻Envi-Hack-Minigames (Standalone)
      • The Worm
      • Password
      • Firewall
      • Node Runner
      • Config File
    • 🎞️Envi-HUD
      • ❗First Time Setup
      • Common Issues
      • Inventory Setup
      • Adding Custom Weapons
      • Change Logo
      • Custom Fonts
      • Converting Notifications
      • Converting Progress Bars
      • Editable Functionality
      • Settings Save Location
      • Exports and Events
      • Commands
      • Vehicle Control
      • Anti Muscle Spasm
      • Ragdoll
      • Config File
    • 🎇Envi-Items
      • Inventory Setup
      • Config File
    • 🚑Envi-Medic
      • Common Issues
      • Fully Disable Transport to Hospital
      • Failsafe
      • Ambulance Scripts
      • Vehicle Fuel
      • Vehicle Keys
      • Exports
      • Config File
    • ☄️Envi-MethVan
      • Common Issues
      • Inventory Setup
      • Cooking Process
      • Editable Functionality
      • Adding a Vehicle
      • Config File
    • 🍃Envi-Megablower9000 (Standalone)
      • Inventory Setup
      • Config File
    • 👯Envi-Population (Standalone)
      • ❗Initial Setup
      • Common Issues
      • Config File
    • 🗒️Envi-Prescriptions
      • Common Issues
      • Inventory Setup
      • Editable Functionality
      • Config File
    • 🔧Envi-Sabotage
      • ❗First Time Setup
      • Common Issues
      • Inventory Setup
      • Exports
    • 🛒Envi-Shops
      • Common Issues
      • Inventory Setup
      • Exports
      • Editable Functionality
      • Config File
    • 📱Envi-Trap-Phone
      • Common Issues
      • Inventory Setup
      • Commands
      • Exports
      • Adding Custom Drugs
      • Using the Phone
      • Disabling Extra Services
      • Config Files
        • config.lua
        • dialogueSettings.lua
        • extraServices.lua
        • gangZoneSettings.lua
        • personalitySettings.lua
        • specialContactSettings.lua
    • 👰Envi-Weddings
      • Inventory Setup
      • Starting Info
      • Manually Removing Data
      • Commands
      • Config File
    • 🎅Envi Xmas-Weapons (Standalone)
      • Inventory Setup
      • Config File
    • 🗡️Envi-Zombie-Weapons (Standalone)
      • Inventory Setup
    • 🧟‍♂️Envi-Zombies
Powered by GitBook
On this page
  • Bridge Settings (Optional)
  • Do not add these unless you either know what you're doing, or you've been told to do so by Envi-Scripts staff.
  • Example Usage

Envi-Bridge

Bridge Settings (Optional)

The bridge auto detects all components.

Do not add these unless you either know what you're doing, or you've been told to do so by Envi-Scripts staff.

These should only be used if we want to override certain things in the bridge.

If for example, you use a renamed database/framework/inventory/target/zone you can change the names using the following convars added to your server.cfg These should be placed somewhere before the envi-bridge resource starts You can also override database/framework/inventory/target/zone resources.

-- Turn On Debug Mode
setr bridge:debug "true"
 
-- Change Language
setr bridge:locale "en"     -- (CURRENTLY UNUSED)
 
-- Override Database
setr bridge:database "oxmysql"
 
-- Override Database Resource Name (Used For Export)
setr bridge:databasename "oxmysql"
 
-- Override Framework
setr bridge:framework "esx"
 
-- Override Framework Resource Name (Used For Export)
setr bridge:frameworkname "es_extended"
 
-- Override Framework Resource Name (Used For Event)
setr bridge:frameworkevent "esx:getSharedObject"
 
-- Override Framework Prefix
setr bridge:frameworkprefix "esx"
 
-- Override Inventory
setr bridge:inventory "ox_inventory"
 
-- Override Inventory Resource Name (Used For Export)
setr bridge:inventoryname "ox_inventory"
 
-- Override Inventory Image Path
setr bridge:inventoryimagepath "ox_inventory/web/images/"
 
-- Override Target 
setr bridge:target "ox_target"
 
-- Override Target Name (Used For Export)
setr bridge:targetname "ox_target"
 
-- Override Zone 
setr bridge:zone "ox_lib"
 
-- Override Zone Name (Used For Export)
setr bridge:zonename "ox_lib"

Example Usage

There may be some unsupported inventories that work by having backwards compatibility support with default qb-inventory triggers. In these cases, we want envi-bridge to read the inventory/qb-inventory files and skip any auto-detection. Here is an example of how we would do this for origen-inventory (qb-core only) :

setr bridge:inventory "qb-inventory"
setr bridge:inventoryname "qb-inventory"
setr bridge:inventoryevent "qb-inventory"
setr bridge:inventoryimagepath "origen_inventory/html/images/"

PreviousIntroductionNextCompatibility

Last updated 27 days ago

🌉