Jump to content

[REL] Gang system (remade)


Castillo

Recommended Posts

Posted

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

  • Like 3
Posted

Upon request of a forum user, I've added two new settings:

Gang create key bind

Gang chat key bind

By default, they aren't set to any key.

Posted

And, there's not a function to do that? It will be nice. I mean, for making an admin permission to deposit/withdraw money from a Gang.

Anyway, good script.

  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...