![[PAID] [ESX] Team System main image](https://forum-cfx-re.akamaized.net/optimized/4X/4/f/9/4f9bfdf25cf5beac8332ea1b619734934ee81d5d_2_517x357.jpeg)
![[PAID] [ESX] Team System thumbnail 1](https://forum-cfx-re.akamaized.net/optimized/4X/4/f/9/4f9bfdf25cf5beac8332ea1b619734934ee81d5d_2_517x357.jpeg)
![[PAID] [ESX] Team System thumbnail 2](https://forum-cfx-re.akamaized.net/optimized/4X/a/8/a/a8a3c200a0a6a1a8d62afdb459553f5e7ef2bac5_2_517x355.jpeg)
![[PAID] [ESX] Team System thumbnail 3](https://forum-cfx-re.akamaized.net/optimized/4X/2/8/4/2840c6c8ce258545cf3ff0eaedd54e7c4ebd190d_2_345x236.jpeg)
![[PAID] [ESX] Team System thumbnail 4](https://forum-cfx-re.akamaized.net/optimized/4X/c/b/2/cb226622fef94d6a8965ff577218f97232d081ad_2_345x205.jpeg)
![[PAID] [ESX] Team System thumbnail 5](https://forum-cfx-re.akamaized.net/optimized/4X/f/f/3/ff3532fdead1836ae622d390f0710c338b2ccf8b_2_345x236.jpeg)
![[PAID] [ESX] Team System thumbnail 6](https://forum-cfx-re.akamaized.net/optimized/4X/2/b/d/2bda19158c34d2e1787577a3e05beac75dbb20a2_2_345x239.jpeg)
Price
UnknownA script by CaptainAvenger
Price
UnknownTeam System
About:
Team System and Team Management System - players can see each other’s blip on the map after joined the same team. Also, players on the same team can’t shoot each other and the name and health bar can be seen above the teammate’s head. In the config, you can choose whether only members of the same team can ride in the same vehicle. Team members can also teleport to teammates. On the other hand, powerful team management system (Admin Only), the admin can manage all teams efficiently.
Features:
Team System
- Any player can create their own team (custom team name) - /createteam [teamname]
- Leader can invite
twofour players to join the team - /invite [id]- Players can see each other’s blip on the map after joined the same team
- Leader can transfer leader to team members - /pass [id]
- Leader can kick the player out of the team (blips with team will disappear when the player leaves the team) - /drop [id]
- Leader can disband the team - /disband
- Players can leave the team on their own (blips with team will disappear when the player leaves the team) - /q
- Players on the same team can’t shoot each other
- Team members can teleport to teammates
- Player can request to join the team, after the leader of that team accept your request, you will join into the team
- When players are on the same team, the name and health bar can be seen above the teammate’s head
Team System - Admin Panel (Admin Only, can set in Config)
- Force players to join the team - /forcejoin [id] [team]
- Force kick the player out of the team - /forcedrop [id]
- Force transfer the leader role to team member - /forcepass [id]
- Force disband the team - /forcedisband [team]
- Force disband all teams - /forcedisbandall
- Powerful team management system (Admin Only)
Common features
- Editable Config
- Simple but user-friendly UI (you can edit the UI yourself if you want), players can also use the commands
- Keybinds can be configured either by config.lua or in game by pressing Esc > Settings > Key Bindings > FiveM
- 2 translation locales (en/zh), allow self-translation to the language you want (need to be added in fxmanifest.lua or overwrite the original text)
- All teams will be stored in the database and will be updated automatically
The Merge Team function
- Team leader allows to merge with other two teams. After the merger, the team will not change, it is still only the leader of that team can invite players to join or kick the team members out of the team.
- All members of the team that have merged with your own team can see each other’s blips on the map (The color of blips: own teammate are green, merge team member are purple) and can’t shoot each other.
- All members of the team that have merged with your own team can also be teleport to each other
- The color of the team that merged with your own team on the team list will change to purple, and “Show My Team only” will also show the team that merged with your team.
- A total of 3 teams can merge with each other, that is up to 15 players (5 players x 3 teams) can merge into the same team.
- Team leader can cancel the merger with other teams, just press the name of your team on the team list and press “Cancel merge team” button to cancel the merger with all teams.
Available Commands:
Commands for everyone
Commands Description /createteam [teamname] Create a team (custom team name) /invite [id] Invite a team member (Only leader can invite) /pass [id] Transfer the leader role to team member (Only leader can transfer) /drop [id] Kick the teammate out of the team (Only leader can kick) /disband Disband the team (Only leader can disband) /y Accept the invitation to join the team /n Reject the invitation to join the team /q Quit the team Commands for Admin Only
Commands Description /forcejoin [id] [team] Force the player to join a specified team /forcedrop [id] Force kick the player out of the team /forcepass [id] Force transfer the leader role to team member /forcedisband [team] Force disband a specified team /forcedisbandall Force disband all teams Config:
config.lua
Config = {} -- Available Locales: 'en', 'zh' Config.Locale = 'en' -- Versions supported (1.1 / 1.2 / legacy) Config.ESXversion = 'legacy' -- **Mainly different in the command part** Config.Mysql = "mysql-async" -- (mysql-async / oxmysql) -- If using oxmysql, remember to comment "@mysql-async/lib/MySQL.lua" and uncomment '@oxmysql/lib/MySQL.lua' in fxmanifest.lua ----------------------------------------------------------------------------- Config.EnableMergeTeamFunction = true -- If false, Players cannot use the merge team function ----------------------------------------------------------------------------- -- Command for opening the TeamSystemMuen UI Config.OpenTeamSystemMuenCommand = 'teammenu' -- Key for opening the TeamSystemMuen UI Config.OpenTeamSystemMuenKeybind = 'F4' ----------------------------------------------------------------------------- -- Groups that can use Keybind to open TeamSystemMuen_AdminPanel Config.admin_groups_AdminPanelKeybind = {"admin", "superadmin"} -- Command for opening the TeamSystemMuen_AdminPanel UI Config.OpenTeamSystemMuen_AdminPanelCommand = 'teammenu_admin' -- Only in Config.admin_groups_AdminPanelKeybind can use this command to open the TeamSystemMuen_AdminPanel UI -- Key for opening the TeamSystemMuen_AdminPanel UI Config.OpenTeamSystemMuen_AdminPanelKeybind = 'F5' -- Only in Config.admin_groups_AdminPanelKeybind can use this Keybind to open the TeamSystemMuen_AdminPanel UI ----------------------------------------------------------------------------- Config.UseSteamName = true -- If false, it will use the first name + last name to display the player name on the UI ------------------------------------------------------------------------------ Config.ShowTeamInfoBar_Name = true -- If false, it will not show health bar above the teammate's head after player joined the same team and players cannot set in the UI setting Config.ShowTeamInfoBar_healthBar = true -- If false, it will not show health bar above the teammate's head after player joined the same team and players cannot set in the UI setting -------------------------------------------------------------------------------- Config.ShowNotification = true -- If false, it will only have chat room message -- Scripts supported (mythic_notify / pnotify / 413x-notify / default) Config.NotificationScript = "default" -- default = ESX.ShowNotification() --------------------------------------------------------------------------------- Config.EnableTeamKill = false -- If set to true: team members can attack each other even if joined the same team ; If set to false: team members cannot attack each other (but not including vehicle damage) ----------------------------------------------------------------------------- Config.admin_groups = "admin" -- Groups that can use admin commands Config.enableCmd = true -- Enable/Disable all player use command (/createteam [teamname], /invite [id], /pass [id], /drop [id], /disband, /y, /n, /q) Config.enableAdminCmd = true -- Enable/Disable Admin use Admin command (/forcejoin [id] [team], /forcedrop [id], /forcepass [id], /forcedisband [id], /forcedisbanall) ----------------------------------------------------------------------------- -- Key for Accept/Reject the Team Invitation -- **If change to other key, remember to change the text of _U("accept_or_reject_invite") & _U("accept_or_reject_invite2") for the correct description -- **Players can also use the command /y or /n to accept or reject the team invitation Config.AcceptTeamInvitationKeybind = 188 -- ARROW UP Config.RejectTeamInvitationKeybind = 187 -- ARROW DOWN -- Key for Accept/Reject the Player requests to join the team's application -- **If change to other key, remember to change the text of _U("accept_or_reject_request") & _U("accept_or_reject_request2") for the correct description Config.AcceptRequestToJoinTeamKeybind = 188 -- ARROW UP Config.RejectRequestToJoinTeamInvitationKeybind = 187 -- ARROW DOWN -- Key for Accept/Reject the Player requests to Merger the team's application -- **If change to other key, remember to change the text of _U("accept_or_reject_merge") & _U("accept_or_reject_merge2") for the correct description Config.AcceptRequestToMergeTeamKeybind = 188 -- ARROW UP Config.RejectRequestToMergeTeamKeybind = 187 -- ARROW DOWN ----------------------------------------------------------------------------- -- Only Team Member Can Ride In Same Vehicle Config.OnlyTeamMemberCanRideInSameVehicle = false -- If set to true: Only team members can ride together in the same vehicle. **That means player from other teams or without a team cannot ride in the same vehicle with player who are not on the same team or without a team. Config.TeamTP = true -- Enable/Disable the teammate use the TP function Config.TpWaitingtime = 5 -- Seconds as unit, the waiting time to teleport to teammate
config.js
var Config = new Object(); // Available Locales: "en", "zh" Config.Locale = "en";
Requirements:
- ESX (1.1 / 1.2 / legacy)
- mysql-async / oxmysql
Optional Requirements:
- mythic_notify - GitHub - JayMontana36/mythic_notify: A simple FiveM notification resource
- pnotify - GitHub - Nick78111/pNotify: In-game notifications for the FiveM GTA V mod
- 413x-notify - GitHub - sharplybond4/NotificationSystem: A simple and easy to use notification system built for FiveM Roleplay
Installation:
- Before starting the resource, please remember to import team_sql.sql to your Database
Exports:
1. exports["teamsystem"]:OpenTeamSystemUI() -- Open the TeamSystemMuen UI 2. exports["teamsystem"]:OpenTeamSystemAdminPanelUI() -- Open the TeamSystemMuen_AdminPanel UI
Warning:
Please make sure in any other resources to stop using
SetCanAttackFriendly(PlayerPedId(), true, true)
andNetworkSetFriendlyFireOption(true)
, otherwise the “team members cannot attack each other” function in the team will not work.Example: es_extended > config.lua > Config.EnablePVP Set it to "false" -- Config.EnablePVP = false
This script is using the Asset Escrow system
Resmon:
Showcase: (outdated version)
[ESX] Team System - https://www.youtube.com/watch?v=GkVFqEoCJ6Y
Purchase:
Tebex: https://captainavenger.tebex.io/package/5225900
Code is accessible No, but have customization files (config.lua, config.js, locales, all html file) Subscription-based No Lines (approximately) 6000 Requirements 1. ESX (1.1 / 1.2 / legacy) 2. mysql-async / oxmysql Support Yes
No approved reviews found for this script yet.