Search the Community
Showing results for tags 'clan panel'.
-
Hello MTA Community,today i am bringing you my resource called Ultimate Clan Panel Its a simple clan panel+Auto Clan Adder+Clan Chat Basically replace the name "Soap" in these lines in client.lua with your Nickname if getElementData(localPlayer, "clan.rank") == "leader" or getElementData(localPlayer, "player.key") == "Soap" or getElementData(localPlayer, "player.key") == "danksta" or getElementData(localPlayer, "player.key") == "[ET]Mohamed" or getElementData(localPlayer, "player.key") == "[ET]Mohamed" or getElementData(localPlayer, "player.key") == "Mohamed" then guiSetEnabled(Clan.Button[3], true) guiSetEnabled(Clan.Button[4], true) else guiSetEnabled(Clan.Button[3], false) guiSetEnabled(Clan.Button[4], false) end function toggleClanControl( source ) if getElementData(localPlayer, "player.key") == "Soap" or getElementData(localPlayer, "player.key") == "[ET]Soap" or getElementData(localPlayer, "player.key") == "danksta" or getElementData(localPlayer, "player.key") == "[ET]Danksta" or getElementData(localPlayer, "player.key") == "Danksta" then if not guiGetVisible( Clan.Window[1] ) then showCursor ( true ) guiSetVisible( Clan.Window[1], true ) guiGridListClear ( Clan.Gridlist[1] ) if ( column ) then guiGridListClear ( Clan.Gridlist[1] ) for _,v in ipairs(getElementsByType("player"))do local row = guiGridListAddRow(Clan.Gridlist[1]) local playerName = getPlayerName(v) guiGridListSetItemText(Clan.Gridlist[1],row,column,playerName,false,false) end end if getElementData(localPlayer, "clan.rank") == "leader" or getElementData(localPlayer, "player.key") == "Soap" or getElementData(localPlay And if u want clans to be created on resource start then edit the following lines in server.lua,example edit clan Forever with your own clan name,you can add more clans if u want function createTeamsOnStart () createTeam ( "Lords of War", 100, 0, 0 ) createTeam ( "Forever", 255, 0, 0 ) createTeam ( "Avalanche", 255, 255, 255 ) createTeam ( "Firestorm", 255, 100, 0 ) createTeam ( "Silent Fart", 0, 0,255 ) createTeam ( "The Keks", 0, 0, 0 ) createTeam ( "Phantom", 67, 0, 234 ) createTeam ( "Quantum", 100, 0, 0 ) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), createTeamsOnStart ) Note:The script has teamsaver and teamcolor in it,so when u add yourself in any clan ur name color changes immediatly Link To Clan Panel:https://www.mediafire.com/file/9ifd41m6p9egq1p/Ultimate Clan Panel.zip Note:The Default key which the clan panel is bound to is "H" and the command to open clan panel is /clan