kanersps / essentialmode

A FiveM project
https://docs.kanersps.pw/docs/essentialmode
GNU Affero General Public License v3.0
82 stars 99 forks source link

SCRIPT ERROR: @essentialmode/server/player/login.lua:13: #80

Closed YInfeRnal closed 4 years ago

YInfeRnal commented 4 years ago

hello i use that and https://github.com/kanersps/extendedmode when i start my server say anything work fine but when the first person come to server for first time the skin build and register not open ! he invisible !!! cannot register and he invisible its my server config :

===========================================

SYNC

set es_enableCustomData 1 set mysql_connection_string "server=localhost;uid=root;password=;database=essentialmode" set mysql_debug 1 set mysql_debug_output "file"

premestion essnital mode

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

Only change the IP if you're using a server with multiple network interfaces, otherwise change the port only.

endpoint_add_tcp "87.236.211.179:30120" endpoint_add_udp "87.236.211.179:30120"

These resources will start by default.

ensure mapmanager ensure chat ensure spawnmanager ensure sessionmanager ensure fivem ensure hardcap ensure rconlog ensure scoreboard

ESX BASE

start esplugin_mysql start mysql-async start essentialmode start extendedmode

OTHER SCRIPS (STANDOBALE)

start es_admin2 start es_ui

ESX BASE SCRIPS

start esx_menu_dialog start esx_menu_list start esx_menu_default start async start cron start instance start esx_addonaccount start esx_addoninventory start esx_rpchat start esx_service start esx_society start esx_status start esx_skin start esx_billing start esx_identity start esx_license start esx_optionalneeds start skinchanger start esx_weaponshop start esx_voice start esx_vehicleshop start esx_taxijob start esx_basicneeds start esx_sit start esx_shops start esx_realestateagentjob start esx_property start esx_policejob start esx_phone start esx_migrate start esx_mechanicjob start esx_lscustom start esx_jobs start esx_joblisting start esx_holdup start esx_garage start esx_drugs start esx_dmvschool start esx_cruisecontrol start esx_datastore start esx_clotheshop start esx_boilerplate start esx_boat start esx_barbershop start esx_atm start esx_bankerjob start esx_animations start esx_accessories start esx_ambulancejob

This allows players to use scripthook-based plugins such as the legacy Lambda Menu.

Set this to 1 to allow scripthook. Do note that this does not guarantee players won't be able to use external plugins.

sv_scriptHookAllowed 0

Uncomment this and set a password to enable RCON. Make sure to change the password - it should look like rcon_password "YOURPASSWORD"

rcon_password ""

A comma-separated list of tags for your server.

For example:

- sets tags "drifting, cars, racing"

Or:

- sets tags "roleplay, military, tanks"

sets tags "default"

A valid locale identifier for your server's primary language.

For example "en-US", "fr-CA", "nl-NL", "de-DE", "en-GB", "pt-BR"

sets locale "root-AQ"

please DO replace root-AQ on the line ABOVE with a real language! :)

Set an optional server info and connecting banner image url.

Size doesn't matter, any banner sized image will be fine.

sets banner_detail "https://url.to/image.png"

sets banner_connecting "https://url.to/image.png"

Set your server's hostname

sv_hostname "FXServer, but unconfigured"

Nested configs!

exec server_internal.cfg

Loading a server icon (96x96 PNG file)

load_server_icon myLogo.png

convars which can be used in scripts

set temp_convar "hey world!"

Uncomment this line if you do not want your server to be listed in the server browser.

Do not edit it if you do want your server listed.

sv_master1 ""

Add 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.fivem:1 group.admin # add the admin to the group

Hide player endpoints in external log output.

sv_endpointprivacy true

enable OneSync with default configuration (required for server-side state awareness)

onesync_enabled true

Server player slot limit (must be between 1 and 32, unless using OneSync)

sv_maxclients 4

Steam Web API key, if you want to use Steam authentication (https://steamcommunity.com/dev/apikey)

-> replace "" with the key

set steam_webApiKey "000"

License key for your server (https://keymaster.fivem.net)

sv_licenseKey 000

kanersps commented 4 years ago

What errors?

YInfeRnal commented 4 years ago

hello im delete my database and install it agin now character register and skin changer worked fine and no problem in gmae But when a person for a first time join server that error show in the console :

==================== Connecting: Yashar InfeRnal Sending heartbeat to https://servers-ingress-live.fivem.net/ingress SCRIPT ERROR: @essentialmode/server/player/login.lua:13: attempt to index a bool ean value (local 'user')

ref (@essentialmode/server/player/login.lua:13) ref (@esplugin_mysql/server.lua:30) (@mysql-async/mysql-async.js:15897) SCRIPT ERROR: @essentialmode/server/player/login.lua:13: attempt to index a bool ean value (local 'user') ref (@essentialmode/server/player/login.lua:13) ref (@esplugin_mysql/server.lua:30) (@mysql-async/mysql-async.js:15897) SCRIPT ERROR: @essentialmode/server/player/login.lua:13: attempt to index a bool ean value (local 'user') ref (@essentialmode/server/player/login.lua:13) ref (@esplugin_mysql/server.lua:30) (@mysql-async/mysql-async.js:15897) SCRIPT ERROR: @essentialmode/server/player/login.lua:13: attempt to index a bool ean value (local 'user') ref (@essentialmode/server/player/login.lua:13) ref (@esplugin_mysql/server.lua:30) (@mysql-async/mysql-async.js:15897) SCRIPT ERROR: @essentialmode/server/player/login.lua:13: attempt to index a bool ean value (local 'user') ref (@essentialmode/server/player/login.lua:13) ref (@esplugin_mysql/server.lua:30) (@mysql-async/mysql-async.js:15897) SCRIPT ERROR: @essentialmode/server/player/login.lua:13: attempt to index a bool ean value (local 'user') ref (@essentialmode/server/player/login.lua:13) ref (@esplugin_mysql/server.lua:30) (@mysql-async/mysql-async.js:15897) SCRIPT ERROR: @essentialmode/server/player/login.lua:13: attempt to index a bool ean value (local 'user') ref (@essentialmode/server/player/login.lua:13) ref (@esplugin_mysql/server.lua:30) (@mysql-async/mysql-async.js:15897) SCRIPT ERROR: @essentialmode/server/player/login.lua:13: attempt to index a bool ean value (local 'user') ref (@essentialmode/server/player/login.lua:13) ref (@esplugin_mysql/server.lua:30) (@mysql-async/mysql-async.js:15897) SCRIPT ERROR: @essentialmode/server/player/login.lua:13: attempt to index a bool ean value (local 'user') ref (@essentialmode/server/player/login.lua:13) ref (@esplugin_mysql/server.lua:30) (@mysql-async/mysql-async.js:15897) SCRIPT ERROR: @essentialmode/server/player/login.lua:13: attempt to index a bool ean value (local 'user') ref (@essentialmode/server/player/login.lua:13) ref (@esplugin_mysql/server.lua:30) (@mysql-async/mysql-async.js:15897) SCRIPT ERROR: @essentialmode/server/player/login.lua:13: attempt to index a bool ean value (local 'user') ref (@essentialmode/server/player/login.lua:13) ref (@esplugin_mysql/server.lua:30) (@mysql-async/mysql-async.js:15897) SCRIPT ERROR: @essentialmode/server/player/login.lua:13: attempt to index a bool ean value (local 'user') ref (@essentialmode/server/player/login.lua:13) ref (@esplugin_mysql/server.lua:30) (@mysql-async/mysql-async.js:15897) SCRIPT ERROR: @essentialmode/server/player/login.lua:13: attempt to index a bool ean value (local 'user') ref (@essentialmode/server/player/login.lua:13) ref (@esplugin_mysql/server.lua:30) (@mysql-async/mysql-async.js:15897) SCRIPT ERROR: @essentialmode/server/player/login.lua:13: attempt to index a bool ean value (local 'user') ref (@essentialmode/server/player/login.lua:13) ref (@esplugin_mysql/server.lua:30) (@mysql-async/mysql-async.js:15897) SCRIPT ERROR: @essentialmode/server/player/login.lua:13: attempt to index a bool ean value (local 'user') ref (@essentialmode/server/player/login.lua:13) ref (@esplugin_mysql/server.lua:30) (@mysql-async/mysql-async.js:15897) Access denied for command add_principal. INFO: User [1] Yashar InfeRnal authenticated - [1] [1] Yashar InfeRnal@2.184.83. 42:22284:22284

YInfeRnal commented 4 years ago

Access denied for command add_principal. i have that error to when i want to setgroup admin to set me admin i have that error Access denied for command add_principal.

YInfeRnal commented 4 years ago

my problem still not fixed ;(

kanersps commented 4 years ago

All I can think of is that there is something wrong with your database, but I'm not sure?

YInfeRnal commented 4 years ago

hello i fix the problem i just need to stop that : esplugin_mysql beacuse extendedmode have that for anyone have this problem just stop esplugin_mysql and everything work bro i have a problem my friend have that to Access denied for command add_principal. i have that error but i add : add_ace resource.essentialmode command.sets allow add_ace resource.essentialmode command.add_principal allow add_ace resource.essentialmode command.add_ace allow in my config

kanersps commented 4 years ago

If you're still having issues, please come to the ExtendedMode discord instead. Maybe there we can find a common solution.