Skip to content

Commit 2c13628

Browse files
committed
Version 2.0
✅ Simplified installation ✅ Optimization ✅ Clean code ✅ Use ox_lib to manage markers ✅ Use ox_lib to notify ✅- Add a check at resource start for the presence of the default gang 'none' ✅ Add 'en' locale ✅ Add a configuration to the garage to choose between unique vehicles or spawn by a list ✅ Invite member is now with ox_target ✅ Add possibility to fire a member with ox_target ✅ Add ox_inventory support 🔥 Remove command 'myid' 🔥 Remove possibility to invite member in boss menu
1 parent b50a447 commit 2c13628

19 files changed

+2114
-1416
lines changed

ADD TO ESX_DATASTORE.lua

Lines changed: 0 additions & 13 deletions
This file was deleted.

ADD TO ES_EXTENDED.lua

Lines changed: 0 additions & 162 deletions
This file was deleted.

README.md

Lines changed: 49 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,54 @@
11

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
44

5-
## v1.0
5+
## V2.0
66

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+
```
1652

1753
## VIDEO PREVIEW
18-
[PREVIEW](https://www.youtube.com/watch?v=jgYIVFZsLFE)
54+
[![VIDEO PREVIEW](https://img.youtube.com/vi/jgYIVFZsLFE/0.jpg)](https://www.youtube.com/watch?v=jgYIVFZsLFE)

0 commit comments

Comments
 (0)