[PAID] Teamsystem Script

A script by 4projects.dev

No reviews yet.
[PAID] Teamsystem Script main image

Price

Unknown

Full Description

:shopping_cart:Get here: 4Projects.dev

:shopping_cart: Showcase Video: YouTube

If you’re experiencing any issues, don’t worry! We’ve got you covered. Just open a ticket in our Discord, and our team will work hard to assist you.

:star: Compatible with every framework!

Config
_4p = {
    Framework = "esx",

    createTeamCommand = "createTeam", -- Command to create a team
    openTeamMenuCommand = "teamMenu", -- Command to open the team menu
    acceptInviteCommand = "accept", -- Command to accept an invite
    declineInviteCommand = "decline", -- Command to decline an invite
    leaveTeamCommand = "leaveTeam", -- Command to leave the team
    deathEvent = 'esx:onPlayerDeath', -- Event to check if a player is dead (Very Important to add your death event here, for Teamkill-Notify to work)
    maxTeamSize = 4, -- Recommended: 4, you can do more but it will look weird after some point
    memberColors = { -- Colors for the team members
        {255, 0, 0},
        {0, 255, 0},
        {0, 0, 255},
        {255, 255, 0},
        {255, 0, 255},
        {0, 255, 255},
        {0, 205, 125},
        {255, 165, 0},
    },
    
    lang = "en", -- Language for the script
}


_4p.notify = function(message, source)
    if IsDuplicityVersion() then
        if _4p.Framework == "esx" then
            TriggerClientEvent("esx:showNotification", source, message)
        elseif _4p.Framework == "qbcore" then
            TriggerClientEvent("QBCore:Notify", source, message)
        else
            print("^1[4p-teamsystem] ^3You are using a custom framework, please add a notification function to the config.lua^7")
        end
    else
        if _4p.Framework == "esx" then
            Framework.object.ShowNotification(message)
        elseif _4p.Framework == "qbcore" then
            Framework.object.Functions.Notify(message)
        else
            print("^1[4p-teamsystem] ^3You are using a custom framework, please add a notification function to the config.lua^7")
        end
    end
end

_4p.language = {
    ["en"] = {
        team_created = "You have created a team.",
        team_joined = "You have joined the team.",
        team_already_have = "You are already in a team or you are the leader of a team.",
        team_not_have = "You are not in a team, or not the leader of a team.",
        player_not_found = "Player not found.",
        player_already_invited = "Player is already invited.",
        team_invited = "You have been invited by %s to join his team [%s], /accept or /decline",
        team_no_invites = "You have no invite.",
        team_invite_accepted = "%s has accepted the invite.",
        team_invite_declined = "%s has declined the invite.",
        player_kicked = "You have kicked %s from the team.",
        you_have_been_kicked = "You have been kicked by %s from the team.",
        teamkill_notify = function(value) return "Teamkill notifications has been " .. (value and "enabled" or "disabled") .. " by the leader" end,
        shared_markers = function(value) return "Shared markers has been " .. (value and "enabled" or "disabled") .. " by the leader" end,
        gpstracking = function(value) return "GPS Tracking has been " .. (value and "enabled" or "disabled") .. " by the leader" end,
        cant_kick_yourself = "You can't kick yourself.",
        you_left_team = "You have left the team.",
        player_left_team = "%s has left the team.",
        team_closed = "The team has been closed.",
        cant_leave_team = "You can't leave the team because you are the leader, close the team instead.",
        teamkill_notify_message = "%s has Teamkilled %s",
        team_full = "Your Team is already full",
        team_request_close = "Team request from %s has expired.",
        already_in_team = "Player is already in a team",
        player_invited = "Player %s has been invited",

        player = "Player",
        id = "ID",
        settings = "Settings",
        desc_notification = "Notification",
        title_teamkill = "TEAMKILL",
        desc_team = "TEAM",
        title_shared_markers = "SHARED MARKERS",
        title_gps_tracking = "GPS TRACKING",
        players_id = "PLAYERS ID",
        invite = "INVITE",
        your_team = "YOUR TEAM",
        close = "CLOSE",
        close_team = "CLOSE TEAM",
    }, 
    ["de"] = {
        team_created = "Du hast ein Team erstellt.",
        team_joined = "Du bist dem Team beigetreten.",
        team_already_have = "Du bist bereits in einem Team oder du bist der Leiter eines Teams.",
        team_not_have = "Du bist nicht in einem Team oder nicht der Leiter eines Teams.",
        player_not_found = "Spieler nicht gefunden.",
        player_already_invited = "Der Spieler wurde bereits eingeladen.",
        team_invited = "Du wurdest von %s eingeladen, um seinem Team [%s] beizutreten, /accept oder /decline",
        team_no_invites = "Du hast keine Einladung.",
        team_invite_accepted = "%s hat die Einladung angenommen.",
        team_invite_declined = "%s hat die Einladung abgelehnt.",
        player_kicked = "Du hast %s aus dem Team gekickt.",
        you_have_been_kicked = "Du wurdest von %s aus dem Team gekickt.",
        teamkill_notify = function(value) return "Teamkill-Benachrichtigungen wurden vom Leader " .. (value and "aktiviert" or "deaktiviert") end,
        shared_markers = function(value) return "Geteilte Marker wurden vom Leader " .. (value and "aktiviert" or "deaktiviert") end,
        gpstracking = function(value) return "GPS-Tracking wurde vom Leader " .. (value and "aktiviert" or "deaktiviert") end,
        cant_kick_yourself = "Du kannst dich nicht selbst kicken.",
        you_left_team = "Du hast das Team verlassen.",
        player_left_team = "%s hat das Team verlassen.",
        team_closed = "Das Team wurde geschlossen.",
        cant_leave_team = "Du kannst das Team nicht verlassen, weil du der Leiter bist, schließe das Team stattdessen.",
        teamkill_notify_message = "%s hat %s Teamgekillt",
        team_full = "Dein Team ist bereits voll",
        team_request_close = "Team Anfrage von %s ist abgelaufen.",
        already_in_team = "Spieler ist bereits in einem Team",
        player_invited = "Spieler %s wurde eingeladen",
        
        player = "Spieler",
        id = "ID",
        settings = "Einstellungen",
        desc_notification = "Benachrichtigung",
        title_teamkill = "TEAMKILL",
        desc_team = "TEAM",
        title_shared_markers = "GETEILTE MARKER",
        title_gps_tracking = "GPS TRACKING",
        players_id = "SPIELER ID",
        invite = "EINLADEN",
        your_team = "DEIN TEAM",
        close = "SCHLIESSEN",
        close_team = "TEAM SCHLIESSEN",
    },
    ["fr"] = {
        team_created = "Vous avez créé une équipe.",
        team_joined = "Vous avez rejoint l'équipe.",
        team_already_have = "Vous êtes déjà dans une équipe ou vous êtes le leader d'une équipe.",
        team_not_have = "Vous n'êtes pas dans une équipe, ou pas le leader d'une équipe.",
        player_not_found = "Joueur non trouvé.",
        player_already_invited = "Le joueur est déjà invité.",
        team_invited = "Vous avez été invité par %s à rejoindre son équipe [%s], /accept ou /decline",
        team_no_invites = "Vous n'avez pas d'invitation.",
        team_invite_accepted = "%s a accepté l'invitation.",
        team_invite_declined = "%s a refusé l'invitation.",
        player_kicked = "Vous avez expulsé %s de l'équipe.",
        you_have_been_kicked = "Vous avez été expulsé par %s de l'équipe.",
        teamkill_notify = function(value) return "Les notifications de Teamkill ont été " .. (value and "activées" or "désactivées") .. " par le leader" end,
        shared_markers = function(value) return "Les marqueurs partagés ont été " .. (value and "activés" or "désactivés") .. " par le leader" end,
        gpstracking = function(value) return "Le suivi GPS a été " .. (value and "activé" or "désactivé") .. " par le leader" end,
        cant_kick_yourself = "Vous ne pouvez pas vous expulser.",
        you_left_team = "Vous avez quitté l'équipe.",
        player_left_team = "%s a quitté l'équipe.",
        team_closed = "L'équipe a été fermée.",
        cant_leave_team = "Vous ne pouvez pas quitter l'équipe car vous êtes le leader, fermez l'équipe à la place.",
        teamkill_notify_message = "%s a Teamkill %s",
        team_full = "Votre équipe est déjà pleine",
        team_request_close = "La demande d'équipe de %s a expiré.",
        already_in_team = "Le joueur est déjà dans une équipe",
        player_invited = "Le joueur %s a été invité",

        player = "Joueur",
        id = "ID",
        settings = "Paramètres",
        desc_notification = "Notification",
        title_teamkill = "TEAMKILL",
        desc_team = "ÉQUIPE",
        title_shared_markers = "MARQUEURS PARTAGÉS",
        title_gps_tracking = "SUIVI GPS",
        players_id = "ID DES JOUEURS",
        invite = "INVITER",
        your_team = "VOTRE ÉQUIPE",
        close = "FERMER",
        close_team = "FERMER L'ÉQUIPE",
    },
}

:closed_lock_with_key: Key Features:

🡂 QB-Core/ESX/Standalone
🡂 Change Theme Color
🡂 Shared Markers
🡂 GPS Tracking of every teammember
🡂 Teamkill notifications
🡂 deactivate the member list on the top left in the html




Code is accessible 50%
Subscription-based No
Lines (approximately) 500
Requirements ESX or QB-Core or Custom Framework
Support Yes