Documentation
  • Weed Script
    • Installation
      • RedEM-RP
      • RSG
      • QR CORE
      • QBR CORE
      • VORP
      • SQL
    • Accessible code
  • Report System
    • Installation
    • Accessible code
  • SafeZone Creator
    • Installation
    • SQL File
    • Accessible code
  • Promo Codes Creator
    • Installation
    • Accessible code
  • Player Manager
    • Installation
    • Accessible code
Powered by GitBook
On this page
  1. Player Manager

Accessible code

function Notify(description, type)
    lib.notify({
        description = description,
        type = type,
        position = 'bottom-right'
    })
end

RegisterNetEvent('enpwr_playermanager:Notify', Notify)
Locales['en'] = {

    Notify = {
        not_online = 'Player is not online anymore',
        firstname_changed = 'Your First name was changed to %s',
        lastname_changed = 'Your Last name was changed to %s',
        group_changed = 'Your group was changed to %s',
        got_money = 'You got $%s',
        removed_moeny = '$%s has been removed from you',
        set_money = 'Your Money has been set to %s',
        got_bank = 'You got $%s to your bank',
        remove_bank = '$%s has been removed from your bank',
        got_blood = 'You got $%s blood money',
        removed_blood = '$%s blood money has been removed from you',
        set_blood = 'Your blood money has been set to $%s',
        set_bank = 'Your bank money has been set to $%s',
        got_gold = 'You got %s Gold',
        gold_removed = '%s Gold has been removed from you',
        gold_set = 'Your Gold has been set to %s',
        got_rol = 'You got %s Rol',
        rol_removed = '%s Rol has been removed from you',
        rol_set = 'Your Rol has been set to %s',
        got_xp = 'You got %s XP',
        xp_removed = '%s XP has been removed from you',
        set_xp = 'Your XP has been set to %s',
        job_updated = 'Your job has been updated to %s',
        job_updated_rsg = 'Your job has been updated to **%s - %s**',
        job_grade_updated = 'Your job grade has been updated to %s',
        gang_updated = 'Your gang has been updated to %s',
        gang_updated_rsg = 'Your gang has been updated to **%s - %s**',
        player_updated = 'Player updated succesfully',
        console_error = 'Something went wrong, check server console',
        something_wrong = 'Something went wrong - no player(s) found',
        player_on_server = 'That player is on server, edit him via online players'
    },

    Logs = {
        firstname = {
            a = 'Online | Firstname updated',
            b = 'Offline | Firstname updated',
            c = '%s (ID: %s) `has updated `%s (ID: %s)` first name to `%s`'
        },
        lastname = {
            a = 'Online | Lastname updated',
            b = 'Offline | Lastname updated',
            c = '`%s (ID: %s) `has updated `%s (ID: %s)` last name to `%s`'
        },
        group = {
            a = 'Online | Group updated',
            b = 'Offline | Group updated',
            c = '`%s (ID: %s) `has updated `%s (ID: %s)` group to `%s`'
        },
        money = {
            a = {
                add = 'Online | Add Money',
                remove = 'Online | Remove Money',
                set = 'Online | Set Money'
            },
            b = {
                add = 'Offline | Add Money',
                remove = 'Offline | Remove Money',
                set = 'Offline | Set Money'
            },
            addlog = '`%s (ID: %s)` has given `$%s` to `%s (ID: %s)`',
            removelog = '`%s (ID: %s)` has removed `$%s` from `%s (ID: %s)`',
            setlog = '`%s (ID: %s)` has set `%s (ID: %s)` cash to `$%s`'
        },
        bank = {
            a = {
                add = 'Online | Add Bank Money',
                remove = 'Online | Remove Bank Money',
                set = 'Online | Set Bank Money'
            },
            b = {
                add = 'Offline | Add Bank Money',
                remove = 'Offline | Bank Remove Money',
                set = 'Offline | Set Bank Money'
            },
            addlog = '`%s (ID: %s)` has given `$%s` to `%s (ID: %s)` bank',
            removelog = '`%s (ID: %s)` has removed `$%s` from `%s (ID: %s) bank`',
            setlog = '`%s (ID: %s)` has set `%s (ID: %s)` bank to `$%s`'
        },
        -- start vorp
        gold = {
            a = {
                add = 'Online | Add Gold',
                remove = 'Online | Remove Gold',
                set = 'Online | Set Gold'
            },
            b = {
                add = 'Offline | Add Gold',
                remove = 'Offline | Remove Gold',
                set = 'Offline | Set Gold'
            },
            addlog = '`%s (ID: %s)` has given `%s` gold to `%s (ID: %s)`',
            removelog = '`%s (ID: %s)` has removed `%s` gold from `%s (ID: %s)`',
            setlog = '`%s (ID: %s)` has set `%s (ID: %s)` gold to `%s`'
        },
        -- rsg
        blood = {
            a = {
                add = 'Online | Add Blood Money',
                remove = 'Online | Remove Blood Money',
                set = 'Online | Set Blood Money'
            },
            b = {
                add = 'Offline | Add Blood Money',
                remove = 'Offline | Remove Blood Money',
                set = 'Offline | Set Blood Money'
            },
            addlog = '`%s (ID: %s)` has given `$%s` blood money to `%s (ID: %s)`',
            removelog = '`%s (ID: %s)` has removed `$%s` blood money from `%s (ID: %s)`',
            setlog = '`%s (ID: %s)` has set `%s (ID: %s)` blood money to `$%s`'
        },
        -- rsg
        rol = {
            a = {
                add = 'Online | Add Rol',
                remove = 'Online | Remove Rol',
                set = 'Online | Set Rol'
            },
            b = {
                add = 'Offline | Add Rol',
                remove = 'Offline | Remove Rol',
                set = 'Offline | Set Rol'
            },
            addlog = '`%s (ID: %s)` has given `%s` rol to `%s (ID: %s)`',
            removelog = '`%s (ID: %s)` has removed `%s` rol from `%s (ID: %s)`',
            setlog = '`%s (ID: %s)` has set `%s (ID: %s)` rol to `%s`'
        },
        xp = {
            a = {
                add = 'Online | Add XP',
                remove = 'Online | Remove XP',
                set = 'Online | Set XP'
            },
            b = {
                add = 'Offline | Add XP',
                remove = 'Offline | Remove XP',
                set = 'Offline | Set XP'
            },
            addlog = '`%s (ID: %s)` has given `%s` xp to `%s (ID: %s)`',
            removelog = '`%s (ID: %s)` has removed `%s` xp from `%s (ID: %s)`',
            setlog = '`%s (ID: %s)` has set `%s (ID: %s)` xp to `%s`'
        },
        -- end vorp
        job = {
            a = 'Online | Job Update',
            b = 'Offline | Job Update',
            c = '`%s (ID: %s)` has updated `%s (ID: %s)` job to `%s`',
            rsg = '`%s (ID: %s)` has udapted `%s (ID: %s)` job to `%s - %s`'
        },
        jobgrade = {
            a = 'Online | Grade Update',
            b = 'Offline | Grade Update',
            c = '`%s (ID: %s)` has updated `%s (ID: %s)` job grade to `%s`'
        },
        gang = {
            a = 'Online | Gang Update',
            b = 'Offline | Gang Update',
            c = '`%s (ID: %s)` has updated `%s (ID: %s)` gang to `%s`',
            rsg = '`%s (ID: %s)` has udapted `%s (ID: %s)` gang to `%s - %s`'
        },
        ganggrade = {
            a = 'Online | Gang Grade Update',
            b = 'Offline | Gang Grade Update',
            c = '`%s (ID: %s)` has updated `%s (ID: %s)` gang grade to `%s`'
        },
    },

    Context = {
        time = '%d days %02d hours %02d minutes ago'
    },

    Input = {
        onl_or_ofln = 'Online or Offline',
        online_players = 'Online Players',
        offline_players = 'Offline Players',
        sort_type = 'Select sort type',
        sort = {
            a = 'Sort alphabetically by first name',
            b = 'Sort alphabetically by last name',
            c = 'Sort by money',
            d = 'Sort by bank',
            f = 'Sort by group',
            g = 'Sort by gold',
            h = 'Sort by XP',
            i = 'Sort by last login'
        },
        edit_player = 'Edit Player',
        edit = {
            a = 'First name',
            b = 'Last name',
            c = 'Group',
            d = 'Money',
            e = 'Bank',
            f = 'Job',
            g = 'Job Grade',
            h = 'Gang',
            i = 'Gang Grade',
            j = 'Blood Money',
            k = 'Gold',
            l = 'Rol',
            m = 'XP',
            n = 'Grade'

        },
        chose_action = 'Chose Action',
        currencry = {
            a = 'Add Currency / XP',    -- xp on vorp
            b = 'Remove Currency / XP', -- xp on vorp
            c = 'Set Currency / XP'     -- xp on vorp
        },
        copy_identifier = 'Copy identifier',
        money = 'Money: %s',
        group = 'Group: %s',
        bank = 'Bank: %s',
        gold = 'Gold: %s',
        xp = 'XP: %s',
        lastlogin = 'Last Login: %s',
        blood = 'Blood Money: %s',
        title = 'Manager (Players: %s)',
        select = 'Select',
        find = {
            a = 'Find by identifier',
            b = 'Find by character Id',
            c = 'Find by Id',
            d = 'Find by name (Firstname or Lastname)'
        },
        identifier = 'Identifier',
        charid = 'Character Id',
        playerid = 'Player Id',
        playername = 'Player Name',
        citizenid = 'Citizen Id',
        select_grade_gang = 'Select grade for %s gang',
        select_grade_job = 'Select grade for %s job',
        select_grade = 'Select Grade'
    },

    Alert = 'Looks like you didnt change job for player, would you like to update grade'
}
Shared = {
    Locale = 'en',

    Commands = {
        manager = {
            name = 'playermanager',
            help = 'Command that allows you to manage online and offline players',
            restricted = 'group.admin'
        },
        findPlayer = {
            name = 'findplayer',
            help = 'Commands that helps you find online or offline player',
            restricted = 'group.admin'
        }
    },

    -- when sorting tables we need way to define which group is higher that other, for vorp and redem
    SortValues = {
        ['user'] = 0,
        ['admin'] = 1,
        ['superadmin'] = 2,
        ['owner'] = 3,
        -- if you have more groups add them here
    }
}
Discord = {

    url = '',  -- url here

    title = 'Server Name',

    /*
        https://www.spycolor.com/

        ['default'] = 14423100,
        ['blue'] = 255,
        ['red'] = 16711680,
        ['green'] = 65280,
        ['white'] = 16777215,
        ['black'] = 0,
        ['orange'] = 16744192,
        ['yellow'] = 16776960,
        ['pink'] = 16761035,
        ['lightgreen'] = 65309,
    */

    color = 65309, -- green

    imageUrl = '', -- optional, if you dont want it put ''
}
-- you can use other check, when using command or triggering event that should change player
function PassCheck(source)
    if IsPlayerAceAllowed(source, 'command') then
        return true
    end

    return false
end
PreviousInstallation

Last updated 11 months ago