Skip to content

Latest commit

 

History

232 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

r_bridge

r_bridge is a lightweight FiveM resource designed to seamlessly bridge various frameworks, inventories, target resources, and more with the scripts developed by r_scripts.

Usage

Add both ox_lib and r_bridge to your resource's shared_scripts (ox_lib must come first):

shared_scripts {
    '@ox_lib/init.lua',
    '@r_bridge/init.lua',
}

Then call the bridge API from your scripts:

bridge.framework.getPlayerJob(src)
bridge.inventory.addItem(src, item, count)
bridge.target.addLocalEntity(entity, options)
bridge.natives.playAnimation(...)
bridge.interface.notify(...)
bridge.utility.useObjectPlacer(...)
bridge.version.check(resource)
print(bridge.version.current)

Namespaces lazy-load on first access. Provider-based namespaces (framework, inventory, target) automatically detect which supported resource is running.

Documentation

Gitbook

Support

Discord

License

This resource is licensed under the GNU GPLv3 License. See the LICENSE file for more details.

About

A bridge for the major frameworks, inventories, etc. used on FiveM.

Resources

Stars

9 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages