Hello there,
Around four years ago, I uploaded my first version of the SQL based gang system, and today, I'm releasing my completely remade resource, with new features and options.
In this new system, you can choose to use MySQL or SQLite as storage method in connection.lua.
[-] Features:
Creating gangs
- Custom color
- Custom tag (currently useless, up to you to do something with it)
- Bank
- Message of the day (motd)
- Logs
Member system
- Inviting
- Kicking
- Ranks
- Shouts
- Give leadership
Bank system
- Deposit
- Withdraw
Rank system
- Creating ranks
- Custom privileges per rank
- Renaming/changing privileges of existing ranks
[-] Exported functions:
addGang ( name, leader, color (table), tag )
removeGang ( name )
doesGangExist ( name )
getGangList ( SQL: true/false )
getGangData ( gangName, dataName (leader, bank, motd, color, tag, members, createdOn, logs (table), ranks(table)) )
setGangData ( gangname, dataName (Can be a table), dataValue (Can be a table) )
getGangMembers ( gangName )
addGangMember ( gangName, accountName, rank, addedBy )
removeGangMember ( gangName, accountName, kickerName )
getMemberData ( gangName, accountName, dataName (gangName, account, rank, nick, lastAction, addedBy, joinedOn) )
setMemberData ( gangName, accountName, dataName (Can be a table), dataValue (Can be a table) )
getAccountGang ( accountName )
getPlayerGangInvitation ( player )
getPlayersByGang ( gangName )
getPlayerGang ( player )
getPlayerGangRank ( player )
addGangLogMessage ( gangName, message )
clearGangLogMessages ( gangName )
addGangRank ( gangName, rankName, privileges (table) )
removeGangRank ( gangName, rankName )
doesRankExist ( gangName, rankName )
isRankAllowedTo ( gangName, rankName, action (kick, invite, log, setrank, motd, tag, color, bank_withdraw, clearlog, createrank, editrank, delrank, shout) )
[-] How to use it:
U (default bind) - Gang Control Panel.
/gangs (default cmd) - Shows a list of all gangs.
/creategang (default cmd) -- To create a gang
/gc (default cmd) -- Gang chat
/gshout (default cmd) -- Global gang shout
/accept (default cmd) -- To accept gang invitations
Example: /creategang Test
The resource comes with plenty of settings, so you can customize it at will.
DOWNLOAD: HERE