Framework
This page serves as a guide to help you integrate your framework with this resource.
For experienced DEVELOPERS only!
Config File
Start by setting the framework to other:
Make sure the following values are left empty:
Database File
Open the rcore_gangs/server/database/api.lua
file. When you start this resource for the first time a thread will automatically create all the necessary tables, however the default collation for these tables is set to utf8mb4_general_ci
. Please make sure that's the collation you use for the table where you'll store the gang members, otherwise change it to your currently used collation on the following line:
Once that's done you'll need to make changes to certain functions which communicate with tables outside this resource. These functions share one thing in common which is the fact that they execute dynamically edited sql queries with the help of the config. The way this needs to be edited is to get rid of Config.FrameworkSQLTables.table
and Config.FrameworkSQLTables.identifier
variables.
Framework Files
Lastly the most crucial part is to integrate client/server framework files. These files are located in rcore_gangs/client/framework/framework_other.lua
and rcore_gangs/server/framework/framework_other.lua
. This is where you connect your framework with the resource using bridge functions which are described in JSDoc. You can get a good idea on what to do from the other framework files. Here's the most used function for example:
Last updated