Carrinho

Download direto após a compra e garantia de reembolso

FiveM Essentialmode

What is Essentialmode for FiveM?

EssentiaMode is the base resource which has cash and permissions functions built in right for your FiveM server. EssentialMode itself will not do anything of use, it is just a base framework. It can be used to easily create resources that have to communicate with each other.

Uso: EssentialMode has many event handlers, here are the current ones available.
Note: These are server-sided

-- Gets called the first time a player spawns in the server.
AdicionarEventHandler('es:firstSpawn', função(source) final)

-- Gets called when a player is fully loaded.
AdicionarEventHandler('es:playerLoaded', função(source) final)

-- Gets called when the player is initialized.
AdicionarEventHandler('es:initialized', função(player) final)

--[[
    Added: version 1.0.0
]]

-- Gets called when a user command is successfully ran.
AdicionarEventHandler('es:userCommandRan', função(source, command_args, user) final)

-- Gets called when any command is ran
AdicionarEventHandler('es:commandRan', função(source, command_args, user) final)

-- Gets called when an admin command is ran
AdicionarEventHandler('es:adminCommandRan', função(source, command_args, user) final)

-- Gets called when a non existent command is ran. (This can be cancelled to not display the message)
AdicionarEventHandler('es:invalidCommandHandler', função(source, command_args, user) final)

-- This gets called when an admin command is ran, but the user does not have permission to run it.
AdicionarEventHandler('es:adminCommandFailed', função(source, command_args, user) final)

-- This gets called when a chat message is sent.
AdicionarEventHandler('es:chatMessage', função(source, command_args, user) final)

--[[
    Added: EssentialMode 4+
]]

-- Gets called when a player leaves the server,  handy for saving custom data.
AdicionarEventHandler('es:playerDropped', função(user)final)

And these are the ones you can trigger, again from the server.

-- Add a command everyone is able to run. Args is a table with all the arguments, and the user is the user object, containing all the user data.
TriggerEvent('es:addCommand', 'command-here-without-slash', função(source, args, user) final, {help here})

-- Add a command that requires admin privileges, the third argument is the required permission level. The first function is when the user has this permission, the second one is when the player does not.
TriggerEvent('es:addAdminCommand', 'command-here-without-slash', 5, função(source, args, user) 
     -- Has permission
final, função(source, args, user) 
     -- Doesn't have permission
final, {help here})

-- Gives the loaded user corresponding to the given player id(second argument).
TriggerEvent('es:getPlayerFromId', source, função(user)
     -- The user object is either nil or the loaded user.
final)

-- Sets player data and then calls the callback once this is done.
TriggerEvent('es:setPlayerData', source, key, value, função(message, success) final)

-- Does the same as above but you can use an identifier instead of a playerid.
TriggerEvent('es:setPlayerDataId', id, key, value, função(message, success) final)

--[[
    Added: version 0.2.2
]]

-- Gives all the loaded players in the first function argument.
TriggerEvent('es:getPlayers', função(players) final)

-- [[
     Added version 1.1.0
]]

-- You can set the default settings with this. The parameter is a table, the settings you want to change can be put in here.
TriggerEvent("es:setDefaultSettings", {})
-- Here is an example usage
TriggerEvent("es:setDefaultSettings", {
    pvpEnabled = verdadeiro -- Default false
})

-- This is able to set a session setting, this setting is saved until server restart.
TriggerEvent("es:setSessionSetting", key, value)

-- With this you can get the variable that was saved using setSessionSetting, the callback has one parameter which contains the stored value (or nil).
TriggerEvent("es:getSessionSetting", key, callback)

--[[
    Added version 2.0.0
]]

-- Adds a new group with the groupname of your choice, you can make it inherit from custom groups or from the main ones. Inheriting from superadmin means that group has access to everything.
TriggerEvent("es:addGroup", "groupname", "inherits")

-- Returns all of the groups inside of the: groups argument
TriggerEvent("es:getAllGroups", função(groups) final)

--[[
    Added: EssentialMode 4+
]]

-- Add a command that requires a specific group. The last 2 arguments need to be functions which both have 3 arguments. (source, command_args, Users[source])
TriggerEvent("es:addGroupCommand", command, group, callback, callbackfailed, {help here})

Scripts do EclipseRP

Não encontrou o que estava procurando?

Confira os outros itens em nossa loja para encontrar outros scripts ou mapas para seu servidor FiveM. Torne seu servidor mais especial hoje mesmo e comece a fazer o download do ESX Scripts!

100% Qualidade Premium

Experimente o auge dos jogos com nosso código de qualidade premium. Autenticado e sem vazamentos para uma experiência de jogo inigualável.

Sem risco

Compre com confiança - nossos scripts FiveM vêm com uma garantia de satisfação e uma política de reembolso sem complicações.

Acesso instantâneo

Melhore seu jogo imediatamente com nossos mods FiveM disponíveis instantaneamente. Sem atrasos, apenas add-ons que mudam o jogo.

Seguro certificado

Melhore sua jogabilidade com os recursos seguros do 100%. Rigorosamente testados e verificados para sua tranquilidade.

pt_BRPortuguês do Brasil

30 %

ONLY TODAY! 30% off TUDO.

Continue agora a navegar pelos scripts e use este código na finalização da compra:

30-OFF-NOW

Days
Hours
Minutes
Seconds