Giter VIP home page Giter VIP logo

essentialmode's Introduction

EssentialMode

Support development

Hey, thank you very much for trying out my software. If you'd like to support continued development I'd very much appreciate if you'd pledge any amount to: https://www.patreon.com/gdevelopment

Description

EssentialMode is a FiveM resource which is used to bring a central management interface for other resources. It handles player data saving like their money, groups and roles and makes these easily usable by other resources.

Features

  • Advanced permission system
  • Easily create new commands which can interface with EssentialMode
  • Logging for every action if enabled
  • Clean readable code
  • Attempt at OOP for easy usage

Installation

Please follow this guide: https://docs.kanersps.pw/docs/essentialmode/installation

Documentation

Documentation for EssentialMode can be found at: https://docs.kanersps.pw/docs/essentialmode/

Rent a server with EssentialMode pre-installed!

Go to https://zap-hosting.com/EssentialMode and use code kanersps-a-2529 for 10% off on all products for life! They will even install EssentialMode for you!

essentialmode's People

Contributors

actuallykane avatar elpumpo avatar ghermans avatar kanersps avatar knaak53 avatar lze3 avatar nathanctech avatar tinky124 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

essentialmode's Issues

"Access denied for command add_principal" Error

I've got my order set as is but everytime I use the command setgroup it gives me the error.

endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"

#################################
## Mandatory Start First
#########################
set mysql_connection_string "server=localhost;database=essentialmode;userid=root;password=password"
exec permissions.cfg

#################################
## ESM/ESX Configuration
#########################
set es_enableCustomData 1
set es_defaultDatabase 2

add_ace resource.essentialmode command.sets allow
add_ace resource.essentialmode command.add_principal allow
add_ace resource.essentialmode command.add_ace allow

#################################
## FiveM Resources
#########################
## Default Resources
    start mapmanager
    start chat-theme-gtao
    start spawnmanager
    start sessionmanager
    start fivem
    start hardcap
    start rconlog
    start scoreboard
    start playernames

## Main Resources
    start mysql-async

## ESM Resources
    start essentialmode
    start esplugin_mysql
    start es_admin2
    start es_ui

## Addon Resources
    start vMenu

#################################
## ScriptHook
#########################
sv_scriptHookAllowed 0

#################################
## Server Tags
#########################
sets tags "life-like, roleplay"

#################################
## Server Settings
#########################
sv_hostname "My new FXServer!"
sv_endpointprivacy true
sv_maxclients 32
sv_licenseKey nope

#load_server_icon myLogo.png

#################################
## Third-Party Authentication
#########################
sv_authMaxVariance 1
sv_authMinTrust 5

#################################
## System Admins
#########################
add_ace group.admin command allow # allow all commands
add_ace group.admin command.quit deny # but don't allow quit
add_principal identifier.steam:110000112345678 group.admin # add the admin to the group

error

(node:17920) [DEP0095] DeprecationWarning: timers.enroll() is deprecated. Please use setTimeout instead.
(node:17920) [DEP0095] DeprecationWarning: timers.enroll() is deprecated. Please use setTimeout instead.
(node:17920) [DEP0126] DeprecationWarning: timers.active() is deprecated. Please use timeout.refresh() instead.
(node:17920) [DEP0126] DeprecationWarning: timers.active() is deprecated. Please use timeout.refresh() instead.
Registering Default(node:17920) [DEP0096] DeprecationWarning: timers.unenroll() is deprecated. Please use clearTimeout instead.
getI(node:17920) [DEP0096] DeprecationWarning: timers.unenroll() is deprecated. Please use clearTimeout instead.

SCRIPT ERROR: citizen:/scripting/lua/json.lua:397: bad argument #1 to 'strfind' (string expected, got nil)

userCallback (@essentialmode/server/main.lua:19)

just started hapening

rcon commands not working

Since updating to 6.0 +, I can no longer send commands via rcon (server console, not F8). I've had to revert back to 5.2.1 since my CAD uses rcon to send commands to the game.

Getting this error when I updated!

Error running system event handling function for resource essentialmode: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: server/main.lua:187: attempt to concatenate a nil value (field '?') stack traceback: server/main.lua:187: in upvalue 'handler' citizen:/scripting/lua/scheduler.lua:219: in function <citizen:/scripting/lua/scheduler.lua:218> stack traceback: [C]: in function 'error' citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow' citizen:/scripting/lua/scheduler.lua:218: in function <citizen:/scripting/lua/scheduler.lua:182> Error running system event handling function for resource essentialmode: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: server/main.lua:187: attempt to concatenate a nil value (field '?') stack traceback: server/main.lua:187: in upvalue 'handler' citizen:/scripting/lua/scheduler.lua:219: in function <citizen:/scripting/lua/scheduler.lua:218> stack traceback: [C]: in function 'error' citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow' citizen:/scripting/lua/scheduler.lua:218: in function <citizen:/scripting/lua/scheduler.lua:182> Error running system event handling function for resource essentialmode: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: server/main.lua:187: attempt to concatenate a nil value (field '?') stack traceback: server/main.lua:187: in upvalue 'handler' citizen:/scripting/lua/scheduler.lua:219: in function <citizen:/scripting/lua/scheduler.lua:218> stack traceback: [C]: in function 'error' citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow' citizen:/scripting/lua/scheduler.lua:218: in function <citizen:/scripting/lua/scheduler.lua:182> Error running system event handling function for resource essentialmode: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: server/main.lua:187: attempt to concatenate a nil value (field '?') stack traceback: server/main.lua:187: in upvalue 'handler' citizen:/scripting/lua/scheduler.lua:219: in function <citizen:/scripting/lua/scheduler.lua:218> stack traceback: [C]: in function 'error' citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow' citizen:/scripting/lua/scheduler.lua:218: in function <citizen:/scripting/lua/scheduler.lua:182>

I get this after the update, I'm going to revert back to the last version until this is fixed.

Strange Error

(node:3600) [DEP0095] DeprecationWarning: timers.enroll() is deprecated. Please use setTimeout instead.
(node:3600) [DEP0095] DeprecationWarning: timers.enroll() is deprecated. Please use setTimeout instead.
(node:3600) [DEP0126] DeprecationWarning: timers.active() is deprecated. Please use timeout.refresh() instead.
(node:3600) [DEP0126] DeprecationWarning: timers.active() is deprecated. Please use timeout.refresh() instead.
Started map fivem-map-hipster
Started resource fivem-map-hipster
Authenticating with Nucleus...
server thread hitch warning: timer interval of 2499 milliseconds

[EssentialMode] Current version: 6.2.2
[EssentialMode] Updater version: 6.2.2

[EssentialMode] Everything is nice and updated!

Advertisement: Want to have EssentialMode pre-installed on a good and affordable server host? Go to the following link: htt(node:3600) [DEP0096] DeprecationWarning: timers.unenroll() is deprecated. Please use clearTimeout instead.
ps://zap-hosting.com/EssentialMode
(node:3600) [DEP0096] DeprecationWarning: timers.unenroll() is deprecated. Please use clearTimeout instead.

What is this?
(node:3600) [DEP0096] DeprecationWarning: timers.unenroll() is deprecated. Please use clearTimeout instead.

Getting a problem

Error running system event handling function for resource essentialmode: citizen
:/scripting/lua/scheduler.lua:41: Failed to execute thread: citizen:/scripting/l
ua/json.lua:397: bad argument #1 to 'strfind' (string expected, got nil)
stack traceback:
[C]: in function 'string.find'
citizen:/scripting/lua/json.lua:397: in upvalue 'scanwhite'
citizen:/scripting/lua/json.lua:553: in function citizen:/scripting/lua
/json.lua:551
(...tail calls...)
@essentialmode/server/main.lua:17: in local 'userCallback'
citizen:/scripting/lua/scheduler.lua:320: in upvalue 'handler'
citizen:/scripting/lua/scheduler.lua:219: in function citizen:/scriptin
g/lua/scheduler.lua:218
stack traceback:
[C]: in function 'error'
citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow'
citizen:/scripting/lua/scheduler.lua:218: in function citizen:/scriptin
g/lua/scheduler.lua:182

es_admin menu

when i open the menu with "HOME" it will open but non responsive..... I can click functions but no result however when I exit the menu I'm then frozen and i see my mouse cursor but cant do any thing at all and no errors..... ingame commands work such as /admin /noclip /bring /go... /spectate does not work. And i can set groups.....

Cant connect correctly?

can you help me to solve this error? im not sure what is causing that.
thanks.

Creating script environments for mysql-async
Started resource mysql-async
Creating script environments for essentialmode
Loaded SQLite.net, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null into ScriptDomain_1935714674
Failed to instantiate instance of script SQLite.Main: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.DllNotFoundException: SQLite.Interop.dll
at (wrapper managed-to-native) System.Data.SQLite.UnsafeNativeMethods.sqlite3_config_none(System.Data.SQLite.SQLiteConfigOpsEnum)
at System.Data.SQLite.SQLite3.StaticIsInitialized () [0x0001d] in <2dbd34e157eb4fefbab8047bc0d9632d>:0
at System.Data.SQLite.SQLiteLog.Initialize (System.String className) [0x00026] in <2dbd34e157eb4fefbab8047bc0d9632d>:0
at System.Data.SQLite.SQLiteConnection..ctor (System.String connectionString, System.Boolean parseViaFramework) [0x00046] in <2dbd34e157eb4fefbab8047bc0d9632d>:0
at System.Data.SQLite.SQLiteConnection..ctor (System.String connectionString) [0x00000] in <2dbd34e157eb4fefbab8047bc0d9632d>:0
at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteConnection..ctor(string)
at SQLite.Main..ctor () [0x0004f] in :0
at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke(System.Reflection.MonoCMethod,object,object[],System.Exception&)
at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in :0
--- End of inner exception stack trace ---
at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00017] in :0
at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic, System.Boolean wrapExceptions) [0x000a8] in :0
at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean wrapExceptions, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00009] in :0
at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Boolean wrapExceptions, System.Threading.StackCrawlMark& stackMark) [0x00027] in :0
at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00020] in :0
at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00000] in :0
at System.Activator.CreateInstance (System.Type type) [0x00000] in :0
at CitizenFX.Core.InternalManager.CreateAssemblyInternal (System.String assemblyFile, System.Byte[] assemblyData, System.Byte[] symbolData) [0x000af] in /src/code/client/clrcore/InternalManager.cs:102
Started resource essentialmode
Creating script environments for esplugin_mysql
Started resource esplugin_mysql
Creating script environments for async
Started resource async
Creating script environments for es_extended
Started resource es_extended
Creating script environments for vBasic
Started resource vBasic
Stopping resource sessionmanager

Got this error on start up latest essentialmode

Error running system event handling function for resource essentialmode: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: citizen:/scripting/lua/json.lua:397: bad argument #1 to 'strfind' (string expected, got nil)
stack traceback:
[C]: in function 'string.find'
citizen:/scripting/lua/json.lua:397: in upvalue 'scanwhite'
citizen:/scripting/lua/json.lua:553: in function citizen:/scripting/lua/json.lua:551
(...tail calls...)
@essentialmode/server/main.lua:17: in local 'userCallback'
citizen:/scripting/lua/scheduler.lua:320: in upvalue 'handler'
citizen:/scripting/lua/scheduler.lua:219: in function citizen:/scripting/lua/scheduler.lua:218
stack traceback:
[C]: in function 'error'
citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow'
citizen:/scripting/lua/scheduler.lua:218: in function citizen:/scripting/lua/scheduler.lua:182

Error on login

On the file server/player/login.lua, on the line 51 the function CreatePlayer has a roles argument after group argument, but nothing is being passed on the roles argument (null value), and when this null string is used on stringsplit function (line 20 of server/classes/player.lua), this cause a crash on player login and the account is never created.

Can someone fix it please?

PLayer join err (no players table)

code = Error (1), message = System.Data.SQLite.SQLiteException (0x800007BF): SQL logic error
no such table: players
  at System.Data.SQLite.SQLite3.Prepare (System.Data.SQLite.SQLiteConnection cnn, System.String strSql, System.Data.SQLite.SQLiteStatement previous, System.UInt32 timeoutMS, System.String& strRemain) [0x003e9] in <2dbd34e157eb4fefbab8047bc0d9632d>:0
  at System.Data.SQLite.SQLiteCommand.BuildNextCommand () [0x000f6] in <2dbd34e157eb4fefbab8047bc0d9632d>:0
  at System.Data.SQLite.SQLiteCommand.GetStatement (System.Int32 index) [0x00008] in <2dbd34e157eb4fefbab8047bc0d9632d>:0
  at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteCommand.GetStatement(int)
  at System.Data.SQLite.SQLiteDataReader.NextResult () [0x00127] in <2dbd34e157eb4fefbab8047bc0d9632d>:0
  at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <2dbd34e157eb4fefbab8047bc0d9632d>:0
  at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <2dbd34e157eb4fefbab8047bc0d9632d>:0
  at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <2dbd34e157eb4fefbab8047bc0d9632d>:0
  at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <2dbd34e157eb4fefbab8047bc0d9632d>:0
  at System.Data.Common.DbCommand.ExecuteNonQueryAsync (System.Threading.CancellationToken cancellationToken) [0x00049] in <9d37a48af4cb43b2b4c4c860952ac37d>:0
--- End of stack trace from previous location where exception was thrown ---

  at SQLite.Main+<>c__DisplayClass4_0.<DoesUserExist>b__0 () [0x00071] in <d9601824428540b9a7e0ba8d7ddf823e>:0

Using mysql

Gangjob Garage can't open society owned vehicles garage Menu

Error running call reference function for resource esx_gangjob: citizen:/scripting/lua/scheduler.lua:405: @esx_gangjob/client/main.lua:315: attempt to concatenate a nil value (field 'plate')
[ 11283235] stack traceback:

ESX.TriggerServerCallback('esx_society:getVehiclesInGarage', function(garageVehicles)

  for i=1, #garageVehicles, 1 do
    table.insert(elements, {label = GetDisplayNameFromVehicleModel(garageVehicles[i].model) .. ' [' .. garageVehicles[i].plate .. ']', value = garageVehicles[i]})
  end

ESX.RegisterServerCallback('esx_society:getVehiclesInGarage', function(source, cb, societyName)
local society = GetSociety(societyName)

TriggerEvent('esx_datastore:getSharedDataStore', society.datastore, function(store)
	local garage = store.get('garage') or {}
	cb(garage)
end)

end)

What to do?

Upgrade instructions

Good Day,
When i'm updating to the latest build i get no cash money visible. What are the instructions to upgrade?

Got this issue

I tried out the new Essentialmode with es_ui and added these ace lines on the server.cfg but still get this error message with essentialmode 6.0.0 and essentialmode 5.2.1.Any ideas? ;P

Error running system event handling function for resource essentialmode: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: citizen:/scripting/lua/json.lua:397: bad argument #1 to 'strfind' (string expected, got nil)
stack traceback:
[C]: in function 'string.find'
citizen:/scripting/lua/json.lua:397: in upvalue 'scanwhite'
citizen:/scripting/lua/json.lua:553: in function citizen:/scripting/lua/json.lua:551
(...tail calls...)
server/main.lua:16: in local 'userCallback'
citizen:/scripting/lua/scheduler.lua:318: in upvalue 'handler'
citizen:/scripting/lua/scheduler.lua:219: in function citizen:/scripting/lua/scheduler.lua:218
stack traceback:
[C]: in function 'error'
citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow'
citizen:/scripting/lua/scheduler.lua:218: in function citizen:/scripting/lua/scheduler.lua:182

Error when performing DV

Testing 6.0.1/mysql-async on fresh server, DVing vehicle triggers the following error but the DV still performs as expected:

Error running system event handling function for resource essentialmode: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: server/main.lua:187: attempt to concatenate a nil value (field '?')
stack traceback:
        server/main.lua:187: in upvalue 'handler'
        citizen:/scripting/lua/scheduler.lua:219: in function <citizen:/scripting/lua/scheduler.lua:218>
stack traceback:
        [C]: in function 'error'
        citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow'
        citizen:/scripting/lua/scheduler.lua:218: in function <citizen:/scripting/lua/scheduler.lua:182>

Line 187

						log('User (' .. GetPlayerName(Source) .. ') ran admin command ' .. command_args[1] .. ', with parameters: ' .. table.concat(command_args, ' '))

SQL Startup error

Loaded SQLite.net, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null into ScriptDomain_2091038296
Failed to instantiate instance of script SQLite.Main: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.DllNotFoundException: SQLite.Interop.dll
  at (wrapper managed-to-native) System.Data.SQLite.UnsafeNativeMethods.sqlite3_config_none(System.Data.SQLite.SQLiteConfigOpsEnum)
  at System.Data.SQLite.SQLite3.StaticIsInitialized () [0x0001d] in <2dbd34e157eb4fefbab8047bc0d9632d>:0
  at System.Data.SQLite.SQLiteLog.Initialize (System.String className) [0x00026] in <2dbd34e157eb4fefbab8047bc0d9632d>:0
  at System.Data.SQLite.SQLiteConnection..ctor (System.String connectionString, System.Boolean parseViaFramework) [0x00046] in <2dbd34e157eb4fefbab8047bc0d9632d>:0
  at System.Data.SQLite.SQLiteConnection..ctor (System.String connectionString) [0x00000] in <2dbd34e157eb4fefbab8047bc0d9632d>:0
  at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteConnection..ctor(string)
  at SQLite.Main..ctor () [0x0004f] in <d9601824428540b9a7e0ba8d7ddf823e>:0
  at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke(System.Reflection.MonoCMethod,object,object[],System.Exception&)
  at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in <b75790b9c16849d4aa8c31d6541d670a>:0
   --- End of inner exception stack trace ---
  at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00017] in <b75790b9c16849d4aa8c31d6541d670a>:0
  at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic, System.Boolean wrapExceptions) [0x000a8] in <b75790b9c16849d4aa8c31d6541d670a>:0
  at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean wrapExceptions, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00009] in <b75790b9c16849d4aa8c31d6541d670a>:0
  at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Boolean wrapExceptions, System.Threading.StackCrawlMark& stackMark) [0x00027] in <b75790b9c16849d4aa8c31d6541d670a>:0
  at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00020] in <b75790b9c16849d4aa8c31d6541d670a>:0
  at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00000] in <b75790b9c16849d4aa8c31d6541d670a>:0
  at System.Activator.CreateInstance (System.Type type) [0x00000] in <b75790b9c16849d4aa8c31d6541d670a>:0
  at CitizenFX.Core.InternalManager.CreateAssemblyInternal (System.String assemblyFile, System.Byte[] assemblyData, System.Byte[] symbolData) [0x000af] in /src/code/client/clrcore/InternalManager.cs:102
Started resource essentialmode

value (global 'ESX') ERROR

İm getting this error on all ESX Resources
Error resuming coroutine: @esx_status/server/main.lua:7: attempt to index a nil
value (global 'ESX')
stack traceback:
@esx_status/server/main.lua:7: in function <@esx_status/server/main.lua:

Vmenu

After that i did the update of essentialmode, my server doesn't load Vmenu anymore.
Does someone knows how i can fix this?

spawning in as ped

replaced es mode to this one get sql error for property/skin and spawn in as a ped

Cash icon

Hello, how can i add png image as cash icon instead of symbols like $,€ etc

could not fix what I do

Performing version check against: https://api.kanersps.pw/em/version?version=6.2.2&uuid=unknown

Error running system event handling function for resource essentialmode: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: citizen:/scripting/lua/json.lua:397: bad argument #1 to 'strfind' (string expected, got nil)
stack traceback:
[C]: in function 'string.find'
citizen:/scripting/lua/json.lua:397: in upvalue 'scanwhite'
citizen:/scripting/lua/json.lua:553: in function citizen:/scripting/lua/json.lua:551
(...tail calls...)
@essentialmode/server/main.lua:17: in local 'userCallback'
citizen:/scripting/lua/scheduler.lua:320: in upvalue 'handler'
citizen:/scripting/lua/scheduler.lua:219: in function citizen:/scripting/lua/scheduler.lua:218
stack traceback:
[C]: in function 'error'
citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow'
citizen:/scripting/lua/scheduler.lua:218: in function citizen:/scripting/lua/scheduler.lua:182

Hello! Error With Script

I have my own server [FXServer]
I have these installed on my server
async
es_admin2
es_extended
esplugin_mysql
essentialmode
esx_addonaccount
esx_addoninventory
esx_basicneeds
esx_billing
esx_jobs
esx_lscustom
esx_skin
esx_society
esx_status
esx_vehicleshop
mysql-async

And Im trying to change my job as Räätäli "tailor" Im getting this error while i change my job " Job wont change"

SCRIPT ERROR: @es_extended/server/classes/player.lua:363: attempt to index a nil value (field '?')

Issue with log on line 187 server/main.lua

Just testet this out and there is a issue with the log feature.

If you use /car vacca there no no problem, but if you use a command with out args ex /dv the error will be thrown consistently.

So there needs to be a check for a nil value on this.

Error running system event handling function for resource essentialmode: citizen :/scripting/lua/scheduler.lua:41: Failed to execute thread: server/main.lua:187: attempt to concatenate a nil value (field '?') stack traceback: server/main.lua:187: in upvalue 'handler' citizen:/scripting/lua/scheduler.lua:219: in function <citizen:/scriptin g/lua/scheduler.lua:218> stack traceback: [C]: in function 'error' citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow' citizen:/scripting/lua/scheduler.lua:218: in function <citizen:/scriptin g/lua/scheduler.lua:182>

Can't Connect with Steam ID

I m using essentialmode latest version, when i try to login server using localhsot on fivem i got error message
Screenshot_1

If i remove essentialmode from server.cfg i can connect with my server, i tried with downgrade version but still same issue :(

A canTarget() question...

In the core function handler for es:addGroupCommand. I see that you use canTarget() to see if the group can target the group in command. Can we use this by instantiating the user object from es:getPlayerFromId or so? Like user.getGroup():canTarget('this_group'), for example.

when i do /setjob i get this error on latest version

Error running call reference function for resource essentialmode: citizen:/scripting/lua/scheduler.lua:403: server/main.lua:264: attempt to index a nil value (field '?')
stack traceback:
server/main.lua:264: in upvalue 'ref'
citizen:/scripting/lua/scheduler.lua:389: in function citizen:/scripting/lua/scheduler.lua:388
[C]: in function 'xpcall'
citizen:/scripting/lua/scheduler.lua:388: in function citizen:/scripting/lua/scheduler.lua:387
stack traceback:
[C]: in function 'error'
citizen:/scripting/lua/scheduler.lua:403: in function citizen:/scripting/lua/scheduler.lua:372

any help would be golden

About abuse game license

Hi man @kanersps ,

Firstly thanks for super useful library

Then i think you should change the code of login to check license:xxxxx OR change license field in database to UNIQUE

BECAUSE:
some users will abuse to create a lot of stream account with another identifier + same license then login and transfer init money to main account.

Thank you

Very weird error...Can't seem to find any fix anywhere...

Whenever any script or resource try's to add anything to the users database in essentialmode the server always outputs this error. Keep in mind this is only with Essentialmode and ESX installed (And obviously the other essentials like SQL and stuff) I don't know what to do anymore and I am very tired after trying to do this for 4 hours. Please, some help me. I just want this to work....

ref (@es_extended/server/common.lua:23)
(@mysql-async/mysql-async.js:14431)
SCRIPT ERROR: @esx_society/server/main.lua:18: attempt to get length of a nil value (local 'result')
fn (@mysql-async/lib/MySQL.lua:197)
SCRIPT ERROR: @es_extended/server/common.lua:35: attempt to get length of a nil value (local 'result')
fn (@mysql-async/lib/MySQL.lua:197)
SCRIPT ERROR: @esx_addonaccount/server/main.lua:9: attempt to get length of a nil value (local 'result')
fn (@mysql-async/lib/MySQL.lua:197)
SCRIPT ERROR: @esx_addoninventory/server/main.lua:10: attempt to get length of a nil value (local 'items')
fn (@mysql-async/lib/MySQL.lua:197)
SCRIPT ERROR: @esx_datastore/server/main.lua:9: attempt to get length of a nil value (local 'result')
fn (@mysql-async/lib/MySQL.lua:197)

Script Error

I'm getting the
SCRIPT ERROR: @essentialmode/server/main.lua:24: attempt to index a nil value (local 'decoded')

The number changes between 24, 22, and 48. I've also reinstalled the latest version of Essential mode and still getting the same results.

I am using OneSync 64 Slots aswell

Error

Error running system event handling function for resource essentialmode: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: citizen:/scripting/lua/json.lua:397: bad argument #1 to 'strfind' (string expected, got nil)
stack traceback:
[C]: in function 'string.find'
citizen:/scripting/lua/json.lua:397: in upvalue 'scanwhite'
citizen:/scripting/lua/json.lua:553: in function citizen:/scripting/lua/json.lua:551
(...tail calls...)
server/main.lua:16: in local 'userCallback'
citizen:/scripting/lua/scheduler.lua:318: in upvalue 'handler'
citizen:/scripting/lua/scheduler.lua:219: in function citizen:/scripting/lua/scheduler.lua:218
stack traceback:
[C]: in function 'error'
citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow'
citizen:/scripting/lua/scheduler.lua:218: in function citizen:/scripting/lua/scheduler.lua:182
server-cfg.zip
resources.zip

SQL error

Getting this, when a player joins.

Error: Unhandled error in timer: Error: no such table: players
Error: no such table: players
at Database.handleError (C:\Users\rikcat\Desktop\FXserver - Copy (2)\resources[whatever]\essentialmode-6.0.2\server\sqlite\sql.js:20:16584)
at Database.exec (C:\Users\rikcat\Desktop\FXserver - Copy (2)\resources[whatever]\essentialmode-6.0.2\server\sqlite\sql.js:20:14832)
at doesUserExist (server/sqlite/sv_database.js:90:27)
at setTimeout (server/sqlite/sv_database.js:103:13)
at Object.callback (citizen:/scripting/v8/timer.js:96:21)
at onTick (citizen:/scripting/v8/timer.js:121:27)

Error in start up?

Error running call reference function for resource essentialmode: citizen:/scripting/lua/scheduler.lua:405: @essentialmode/server/player/login.lua:13: attempt to index a boolean value (local 'user')
stack traceback:
@essentialmode/server/player/login.lua:13: in upvalue 'ref'
citizen:/scripting/lua/scheduler.lua:391: in function citizen:/scripting/lua/scheduler.lua:390
[C]: in function 'xpcall'
citizen:/scripting/lua/scheduler.lua:390: in function citizen:/scripting/lua/scheduler.lua:389
stack traceback:
[C]: in function 'error'
citizen:/scripting/lua/scheduler.lua:405: in function citizen:/scripting/lua/scheduler.lua:374
Error running call reference function for resource esplugin_mysql: citizen:/scripting/lua/scheduler.lua:405: citizen:

F2 (Inventory) not updating on cash drop

Hello Kanersps,

I've installed the latest version of essentialmode (6.0.2) but whenever i drop cash from my F2 inventory it drops on the floor but not updates the F2 inventory.

Staps to reproduce

  1. User press F2 to open inventory.
  2. Drops 10k on the floor.
  3. 10k is on the floor in a bag.
  4. Check F2 menu again and still the same amount of cash is displayed from before the drop.

Can provide a video for you if you need information on this. No errors or logs.

(This also applies on purchases, atm or anything else you do with cash)

It was working in older versions of essentialmode (5.1.0)

Gr,

Smilling2death

Don't see money icon

Don't see money icon in the UI.
Money don't show up after the update to 6.0.2

Script error when player joins server

When I join my server I get the following error in the server console:

SCRIPT ERROR: @essentialmode/server/classes/player.lua:24: attempt to concatenate a nil value (field 'group')
CreatePlayer (@essentialmode/server/classes/player.lua:24)
ref (@essentialmode/server/player/login.lua:15)
ref (@esplugin_mysql/server.lua:18)
(@mysql-async/mysql-async.js:14431)

Confused as to what is going on. What can I do to fix this?

Failed to instantiate instance of script SQLite.Main

I get this error when i updated essentialmode to 6.1.0

resource fivem-map-hipster
Loaded SQLite.net, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null into ScriptDomain_605605801
Failed to instantiate instance of script SQLite.Main: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.DllNotFoundException: SQLite.Interop.dll
at (wrapper managed-to-native) System.Data.SQLite.UnsafeNativeMethods.sqlite3_config_none(System.Data.SQLite.SQLiteConfigOpsEnum)
at System.Data.SQLite.SQLite3.StaticIsInitialized () [0x0001d] in <2dbd34e157eb4fefbab8047bc0d9632d>:0
at System.Data.SQLite.SQLiteLog.Initialize (System.String className) [0x00026] in <2dbd34e157eb4fefbab8047bc0d9632d>:0
at System.Data.SQLite.SQLiteConnection..ctor (System.String connectionString, System.Boolean parseViaFramework) [0x00046] in <2dbd34e157eb4fefbab8047bc0d9632d>:0
at System.Data.SQLite.SQLiteConnection..ctor (System.String connectionString) [0x00000] in <2dbd34e157eb4fefbab8047bc0d9632d>:0
at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteConnection..ctor(string)
at SQLite.Main..ctor () [0x0004f] in :0
at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke(System.Reflection.MonoCMethod,object,object[],System.Exception&)
at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in :0
--- End of inner exception stack trace ---
at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00017] in :0
at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic, System.Boolean wrapExceptions) [0x000a8] in :0
at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean wrapExceptions, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00009] in :0
at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Boolean wrapExceptions, System.Threading.StackCrawlMark& stackMark) [0x00027] in :0
at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00020] in :0
at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00000] in :0
at System.Activator.CreateInstance (System.Type type) [0x00000] in :0
at CitizenFX.Core.InternalManager.CreateAssemblyInternal (System.Byte[] assemblyData, System.Byte[] symbolData) [0x00067] in /src/code/client/clrcore/InternalManager.cs:86
Started resource essentialmode

Error on server startup

Error running system event handling function for resource esplugin_mysql: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: citizen:/scripting/lua/scheduler.lua:655: No such export mysql_fetch_all in resource mysql-async
stack traceback:
        [C]: in function 'error'
        citizen:/scripting/lua/scheduler.lua:655: in metamethod '__index'
        @mysql-async/lib/MySQL.lua:143: in field 'fetchAll'
        server.lua:15: in upvalue 'handler'
        citizen:/scripting/lua/scheduler.lua:175: in function <citizen:/scripting/lua/scheduler.lua:174>
stack traceback:
        [C]: in function 'error'
        citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow'
        citizen:/scripting/lua/scheduler.lua:174: in function <citizen:/scripting/lua/scheduler.lua:138>

UI

The new update for esx removes the UI for money.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.