Create your own bridge
This little tutorial work for all of our resources
If you use another framework than ESX or QBCORE or you use a specific or modified version of these, you may need to create your own bridge.
Please note that creating a bridge requires a minimum of development skills and lua syntax.
Step #1 : Copy the example bridge
In your resource you have a "bridge" folder. In this "bridge" folder you have several lua files. Create a lua file named cl_yourBridgeName.lua and another named sv_yourBridgeName.lua. In each of the files, copy and paste the contents of cl_example.lua and sv_example.lua respectively
Step #2 : Initialize your bridge
In your client and server bridge file (cl_yourBridgeName.lua and sv_yourBridgeName.lua) you have something like that :
Remplace all "EXAMPLE" to your framework name. For example, in the esx bridge, we have put "ESX" and for qbcore bridge, we have put "QBCORE". This is the name you have to call in the configuration.
Step #3 : Create your bridge
We are not going to explain here precisely how to create the bridge, use your knowledge of your framework and the lua to create your bridge. Each bridge is different from each other. All information is given in the example bridge
Step #4 : Configure your config.lua file for your bridge
Go to your resource's config.lua file, and replace this Config.bridge = "A_VALUE"
with this Config.bridge = "YOUR_BRIDGE_NAME"