[FIXED] Set vs_licensekey problem

I have created a license key using https://keymaster.fivem.net/
My server is hosted on a vps and I can access it via direct connect with the ip.

In my server.cfg I have this line : set sv_licenseKey “DELETED”

but if i check on https://servers.fivem.net it say [INVALID KEY] SERVER NAME

Any more information?

Like the content of your server.cfg and more relevant information.

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;password="

set es_enableCustomData 1
sv_scriptHookAllowed 0
set sv_licenseKey "DELETED"
rcon_password DELETED

# loading a server icon (96x96 PNG file)
load_server_icon servericon.png
sv_hostname "DELETED"
set temp_convar "ESX"

# disable announcing? clear out the master by uncommenting this
#sv_master1 ""

# want to only allow players authenticated with a third-party provider like Steam?
sv_authMaxVariance 1
sv_authMinTrust 5

# 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_principal allow
add_principal identifier.steam:110000111c8dc0c group.admin # add the admin to the group

# hide player endpoints in external log output
sv_endpointprivacy true

set sv_licenseKey "DELETED"

to

sv_licenseKey DELETED

without quotes and set in front of it.

It says no such command

More information please, like the exact error message.

no such command sv_licenseKey. It doesn’t say anything else…

sv_licenseKey -> sv_licensekey

All lowercase.

Nothing happen, I tryed with
sv_licensekey “DELETE”
sv_licensekey DELETE
set sv_licensekey DELETE
set sv_licensekey “DELETE”

They all don’t work, but if I use this one : set sv_licenseKey “DELETE”
nothing appear in the console

Does the Label in keymaster has to be the same as my server name ?

No, it doesn’t. In most server.cfg files the key goes down at the bottom (not that it should really matter) but try moving the key to the very bottom of the config and use the format below:

# license key for server (https://keymaster.fivem.net)
sv_licenseKey changeme

Honestly, the use of quotations and set doesn’t have an effect on whether or not the key will work… Kinda odd.

Does not work… if I don’t use quotation and set it always say no such command.

Okay, I did check if FiveM has done a update on CFXServer and it appear they did this morning in the master branch.
https://runtime.fivem.net/artifacts/fivem/build_server_windows/master/551-79ad448a02431ab94ad05593ba65bbb3b78c2533/

After putting set sv_licenseKey “DELETED” at the top of my script just like my second post it say that :

The only problem left is that it seem to not be updating on FiveM.
Server still doesn’t appear in the server list and if I check on https://servers.fivem.net/#/servers/detail/79.143.178.75:30120
it still say invalid key with a player John Smith that was logged on like 4hrs ago

I also logged myself on the server to send a heartbeat to fivem internal server.

Well, 3 hours later it seem to appear in the list now.
So fixed.

1 Like

Nope, putting FXServer files up to date fixed the problem.