esfer_clansystem - Clan system
This clan system gives players on the server the possibility to have their own groups and clans hosted in different areas of the map, as well as having a cache of weapons and money.
Preview video
Required scripts
This resource must be runned with the following scripts:
pNotify
(Optional, for notification system).
Configuration
Config.Blip
If the script show the clan's blip, select which blip will appear.
Config.LimitInventory
The limit set to the clan's inventory.
Export functions
Client SidegetCurrentClanName
Gets the name of the clan the player is currently in.
Example use:
luaprint('Name of the clan: ' .. exports['esfer_clansystem']:getCurrentClanName())
(Returns
nil
if the player isn't in a clan)
getCurrentClanId
Takes the ID of the clan the player is currently in.
Example use:
luaprint('ID of the clan: ' .. exports['esfer_clansystem']:getCurrentClanId())
(Returns
nil
if the player isn't in a clan)
isLeaderFromClan
Returns whether the player is a clan leader or not.
Server SideExample use:
luaprint('Is the player leader of the clan?: ' .. tostring(exports['esfer_clansystem']:isLeaderFromClan()))
getCurrentClanName
Gets the name of the clan the player is currently in.
Example use:
luaprint('Name of the clan: ' .. exports['esfer_clansystem']:getCurrentClanName(source))
getCurrentClanId
Takes the ID of the clan the player is currently in.
Example use:
luaprint('ID of the clan: ' .. exports['esfer_clansystem']:getCurrentClanId(source))
isLeaderFromClan
Returns whether the player is a clan leader or not.
Example use:
luaprint('Is the player leader of the clan?: ' .. tostring(exports['esfer_clansystem']:isLeaderFromClan(source)))