Argument count mismatch in server console

This is a server related issue, so I didn’t use the template. If you need me to fill out the template, let me know. I am getting a “Argument count mismatch (passed 4, wanted 2)” in my server console. It is a home hosted server. Down below is my server.cfg.

exec permissions.cfg

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

set mysql_connection_string "server=localhost;database=essentialmode;userid=root;"
set es_enableCustomData 1
sv_licenseKey 
sv_scriptHookAllowed 0
#rcon_password 
sv_hostname " "
set temp_convar "ESX"

# Uncomment to DISABLE your server coming up in the server list
#sv_master1 ""

# want to only allow players authenticated with a third-party provider like Steam (don't forget, Social Club is a third party provider too!)?
sv_authMaxVariance 1
sv_authMinTrust 1

# 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_ace resource.essentialmode command.add_ace allow
add_ace resource.essentialmode command.add_principal allow
add_principal identifier.steam:1234567890123 group.admin # add the admin to the group

# remove the # to hide player endpoints in external log output
sv_endpointprivacy true

# FIVEM DEFAULT
start mapmanager
start chat
start spawnmanager
start sessionmanager
restart sessionmanager
start fivem
start hardcap
start ■■■■■■■
start scoreboard
start baseevents
#start playernames

# MYSQL ASYNC
start mysql-async

# ESSENTIAL MODS
start essentialmode
start esplugin_mysql
start es_admin2
start es_extended

# ESX REQUIRED MODS
start instance
start cron
start skinchanger
start esx_skin
start esx_menu_default
start esx_menu_list
start esx_menu_dialog
start esx_phone
start esx_addonaccount
start esx_addoninventory
start esx_datastore
start esx_society
start esx_service
start esx_billing
start esx_identity

# ESX REQUIRED MODS 2
start esx_accessories
start esx_animations
start esx_barbershop
start esx_cruisecontrol
start esx_license
start esx_dmvschool
start esx_lscustom
start esx_mask
start esx_optionalneeds
start esx_rpchat
start esx_shops
start esx_sit
start esx_voice
start esx_weashops
#start esx_whitelistEnhanced

# ESX JOBS
start esx_jobs
start esx_joblisting
start esx_taxijob
start esx_mecanojob
start esx_policejob    
start esx_property
start esx_realestateagentjob
start esx_bankerjob
start esx_ambulancejob
start esx_vehicleshop

# ESX ANY OTHER MODS
start esx_status
start esx_basicneeds
start esx_clotheshop
start esx_garage
start esx_holdup
start esx_drugs
start esx_atm
start esx_advancedfuel
start esx_jailer
start esx_borrmaskin
start esx_holdupbank

# CIVILIAN VEHICLES
start 1965hoonicorn
start 2002vts
start 2004sti
start 2014s63
start 2015mustang
start 2016challenger
start 2016giulia
start 2016m2
start 2016p911ts
start 2016rs6
start 2017gtr
start 2017r8
start 2018m5
start zondacinque

# POLICE PEDS
start cop_ped
start hway_ped

# POLICE VEHICLES
start octavia
start umoctavia
start insignia
start astra
start bmwr1200
start sprinter

# WEAPONS
start glock17
start m4a1

# MISC MODS
start vk_handsup
start fingerpoint
#start EngineToggle
start vehicle_control
start RealisticVehicleFailure
start sexyspeedometer
start lux_vehcontrol
start vehTowing
start wk_wrs
start map
start streetLabel
start loadscreen
start vMenu

# nested configs!
#exec server_internal.cfg

# loading a server icon (96x96 PNG file)
load_server_icon logo1.png

# server slots limit (must be between 1 and 32)
sv_maxclients 32
1 Like

That would be a script issue not a server issue.

It’s not causing any issues as far as I know. Should I update my scripts, see if that fixes it? Or should I just ignore it?

I mean that error is caused when a function gets passed 4 arguments when it only needed 2. It could cause issues so I would track down where its coming from by disabling scripts that you added near the time it started occurring.

I believe natives return that when the arguments do not match?

Could we see the exact error message? Does it occur on server launch, or is it after a player does something? Like @xander1998 said, this is a script issue.

Just a side note: it’s not a good idea to connect to your SQL database as root (especially with no password). You should make a SQL user specifically for the FiveM database and restrict it’s access.

2 Likes

Thanks for the answers guys. I will try disabling resources one by one and post the exact error message when I have some more free time.

Turns up the dev of a resource updated his script and the message disappeared.

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.