[ESX] [FREE] ESX TEAMS (criminal/organization/teams)

ESX TEAMS

Links

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 :slight_smile:

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

@HackerBoyy
@FuegoDel

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)
11 Likes

Looks awesome! Thank you for the free release! :smiley:

there is no no recoil

1 Like

Hello, as i have typed in the file, recoil is just an example of what you could do, very easily through my script! For example, if you have a recoil script in your server you can just export the privilage into that script and if the player’s team has the privilage then disable the recoil

Thank you very much

bro,any for qb-core in future

Right now i dont know anything about qb-core but its not that FRAMEWORK Depented script as for the jobs, I will check out qb docs and if its not that different which probably is not, i will translate to qb and release it as well

1 Like

does it work with legacy?

The script only uses es_extended to handle jobs, if your server uses mysql-async i think it will be okay, give it a try and give me the feedback if you can <3

i use oxmysql

can you make a update for oxmysql?

I’d imagine you would be fine to use this script still. oxmysql provides all of the same mysql-async functions for compatibility.

doesnt work for me

Really cool!

how to open menu?