ESX TEAMS
Links
- Preview : Watch esx_teams | Streamable
- Github download link : GitHub - FuegoDel/esx_teams: A Script designed to help servers achieve achieve creating their own criminal/team/organization system
Description
ESX Teams is a script designed to help servers have a very advanced criminal/team/organization system by handling and storing details while also offering some quite unique features. Script is developer friendly by offering the server and the developer some very nice tools to make resources using esx_teams serverside and clientside exports
Privilages System
Privilages system offers team leaders to unlock unique skills and abilities like the examples i have made in the script, every single privilage can be created from the config file and of course can be exported to another script
Features
- Team Creation
- Team Menu
- Privilages System
- Responsive NUI for all those stuff
- Experience and leveling system
- Script is pretty lightweight for what it actually does
- Amazing Handling
Configurables
- Grade Nui Icons
- Built in kill reward system(can be turned off and on via config)
- All Team privilages
- Creation NPC / BLIPS / TEXT / HELPNOTIFICATION
- Team Settings such as Levels and the requiremnt Experience needed to update to another level
The script is fully open source so you can edit every single notification so dont worry about that
Server Exports
- isInTeam(jobName)
- isTeamBoss(identifier)
- getPrivilage(team,privilage)
- getTeamPrivilages(team)
- addPrivilage(team,privilage)
- removePrivilage(team,privilage)
- getTeamLevel(team)
- getTeamExperience(team)
- addTeamExperience(team)
- removeTeamExperience(team)
- upgradeTeamLevel(team)
- downgradeTeamLevel(team)
- setTeamLevel(team,level)
- deleteTeam(team)
- createTeam(jobname,playerid)
- setTeamOwner(team,playerid)
Client Exports
- getClientTeamExperience(job)
- getClientTeamLevel(job)
- isClientInTeam(job)
Availabe Commands
- /setteamlevel [team] [level]
- /upgradeteamlevel [team]
- /downgradeteamlevel [team]
- /setteamowner [team] [id]
- /createteam [teamname]
- /delteam [teamname]
- /addprivilage [teamname] [privilage]
- /removeprivilage [teamname] [privilage]
- /addteamxp [teamname] [exp]
- /removeteamxp [teamname] [exp]
Dependencies
- es_extended
- mysql-async
- Note that script is build and tested on ESX 1.1 i believe
Creators
Edits / Updates / Notes
Bug Fix
26 / 7 / 2022
Fixed a bug where my name whould show up on manage members instead of the member’s actual steam name
Note
25 / 7 / 2022
Add this to es_extended/server/common.lua for the live update on jobs! Note that this is not the optimized solution but use this until i release the new one here
RegisterServerEvent('esx:requestjobs')
AddEventHandler('esx:requestjobs', function (shouldRefresh)
if not shouldRefresh then
return
end
local result = MySQL.Sync.fetchAll('SELECT * FROM jobs', {})
for i=1, #result do
ESX.Jobs[result[i].name] = result[i]
ESX.Jobs[result[i].name].grades = {}
end
local result2 = MySQL.Sync.fetchAll('SELECT * FROM job_grades', {})
for i=1, #result2 do
if ESX.Jobs[result2[i].job_name] then
ESX.Jobs[result2[i].job_name].grades[tostring(result2[i].grade)] = result2[i]
else
print(('es_extended: invalid job "%s" from table job_grades ignored!'):format(result2[i].job_name))
end
end
for k,v in pairs(ESX.Jobs) do
if next(v.grades) == nil then
ESX.Jobs[v.name] = nil
print(('es_extended: ignoring job "%s" due to missing job grades!'):format(v.name))
end
end
end)