|
1 | 1 |
|
2 |
| -# MGD GangBuilder |
3 |
| -🔫 GangBuilder for FiveM |
| 2 | +# MG Développement - Gang Builder |
| 3 | +🔫 A Gang Builder for FiveM doesn't need a reboot to update ! Uses a custom data named 'gang' in the player data to avoid using job or job2 |
4 | 4 |
|
5 |
| -## v1.0 |
| 5 | +## V2.0 |
6 | 6 |
|
7 |
| -- Create on ESX Legacy 1.9.1 with oxmysql |
8 |
| -- Menus in RageUI V3 |
9 |
| -- Create and edit without reboot |
10 |
| -- Manage ranks (create, delete, rename) in boss menu |
11 |
| -- Permissions system (garage access, inventory access etc) |
12 |
| -- Inventory for items, weapons and accounts |
13 |
| -- System discord logs (actions admin and actions players) |
14 |
| -- Custom Data "gang" which prevent to use job or job 2 |
15 |
| -- Custom Data set up in ESX PlayerData |
| 7 | +- Simplified installation |
| 8 | +- Optimization |
| 9 | +- Clean code |
| 10 | +- Use ox_lib to manage markers |
| 11 | +- Use ox_lib to notify |
| 12 | +- Add a check at resource start for the presence of the default gang 'none' |
| 13 | +- Add 'en' locale |
| 14 | +- Add a configuration to the garage to choose between unique vehicles or spawn by a list |
| 15 | +- Invite member is now with ox_target |
| 16 | +- Add possibility to fire a member with ox_target |
| 17 | +- Add ox_inventory support |
| 18 | +- Remove command 'myid' |
| 19 | + |
| 20 | +## HOW TO INSTALL |
| 21 | +- Put 'mgd_gangbuilder' in your resources folder |
| 22 | +- Add 'ensure mgd_gangbuilder' in your server.cfg |
| 23 | +- Import 'mgd_gangbuilder.sql' in your database |
| 24 | +- In your 'es_extended' (server/classes/player.lua) : |
| 25 | + - add in beginning of function 'CreateExtendedPlayer', below `local targetOverrides` |
| 26 | + ```lua |
| 27 | + local targetMoreFunctions = Core.MorePlayerFunction['MGD_GangBuilder'] or {} |
| 28 | + ``` |
| 29 | + - add in function 'CreateExtendedPlayer', below `self.admin = Core.IsPlayerAdmin(playerId)` : |
| 30 | + ```lua |
| 31 | + self.gang = {} |
| 32 | + ``` |
| 33 | + - add at the end of function 'CreateExtendedPlayer', above `return self` : |
| 34 | + ```lua |
| 35 | + for fnName, fn in pairs(targetMoreFunctions) do |
| 36 | + self[fnName] = fn(self) |
| 37 | + end |
| 38 | + ``` |
| 39 | +- In your 'es_extended' (server/classes/overrides), add in the file 'mgd_gangbuilder.lua' |
| 40 | + |
| 41 | +If you don't use ox_inventory : |
| 42 | +- In your 'esx_datastore' (server/main.lua), add : |
| 43 | +```lua |
| 44 | +AddEventHandler('mgd_gangbuilderXesx_datastore:createDataStore', function(name, data) |
| 45 | + SharedDataStores[name] = CreateDataStore(name, nil, json.decode(data)) |
| 46 | +end) |
| 47 | + |
| 48 | +AddEventHandler('mgd_gangbuilderXesx_datastore:deleteDataStore', function(name) |
| 49 | + SharedDataStores[name] = nil |
| 50 | +end) |
| 51 | +``` |
16 | 52 |
|
17 | 53 | ## VIDEO PREVIEW
|
18 |
| -[PREVIEW](https://www.youtube.com/watch?v=jgYIVFZsLFE) |
| 54 | +[](https://www.youtube.com/watch?v=jgYIVFZsLFE) |
0 commit comments