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.
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.
This resource is licensed under the GNU GPLv3 License. See the LICENSE file for more details.