My Server licence key dosent work

I put in the key and saved the cfg and loaded it. it didn’t work I tried again with " " it still didn’t work please help me with this thx

and the error is :
GlobalError: This server does not have a license key specified. Please set the sv_licenseKey console variable to a key from https://keymaster.fivem.net/. (for example, set sv_licenseKey "key" in the config, or +set sv_licenseKey key on the command line)

1 Like

Do you have it exactly like this in your server.cfg file? (and yes, of course change the changeme)

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

mine is

set sv_licenseKey “key”

it still dose not work

set shouldn’t make much of a difference, works both with or without for me. Are you sure your server.cfg file is being executed?

if its not how do I fix that

well to test it, add +set sv_licenseKey yourkeyhere to your server run command and check if the server.cfg file loads all resources.
(example for linux that’d be:)

bash run.sh +exec server.cfg +set sv_licenseKey "yourkeyhere"

ima noob at this but were do I type the command

How are you trying to start your server? You either have to use a start script or run a command to get your server started in the first place…

thru the .bat file I created

What’s inside the bat file?

mine gives me this ‘bash’ is not recognized as an internal or external command,
operable program or batch file.

i get “No such command sv_licenseKey” when i put in my license. I have it exactly like this in config

# license key for server (https://keymaster.fivem.net)
sv_licenseKey "ofcourse i have my liense key here

Does it matter where in config file it is?

Answer the question :wink:

inside my .bat file is :cd /d D:\server\cfx-server-data-master
D:\Server\run.cmd +exec server.cfg

D:\server\ is not the same as D:\Server\ please make sure your filepaths are correct.

Did you read what I said about the example?

example for linux

So yeah, of course bash wouldn’t work on windows :wink:

Just add +set sv_licenseKey "yourKey" to the end of your server run command.

1 Like

Are you sure your server is up to date?

1 Like

i think i fixed it

D:\server\cfx-server-data-master>D:\Server\run.cmd +exec server.cfg +set sv_licenseKey I PUT MY KEY HERE
Initializing Mono
Initializing Mono completed
Hello!
Found new resource fivem in D:/server\cfx-server-data-master/resources//fivem
Found new resource fivem-awesome1501 in D:/server\cfx-server-data-master/resources//fivem-awesome1501
Found new resource fivem-map-hipster in D:/server\cfx-server-data-master/resources//fivem-map-hipster
Found new resource fivem-map-skater in D:/server\cfx-server-data-master/resources//fivem-map-skater
Found new resource runcode in D:/server\cfx-server-data-master/resources//runcode
Found new resource race in D:/server\cfx-server-data-master/resources//[gamemodes]/race
Found new resource race-test in D:/server\cfx-server-data-master/resources//[gamemodes]/race-test
Found new resource channelfeed in D:/server\cfx-server-data-master/resources//[gameplay]/channelfeed
Found new resource irc in D:/server\cfx-server-data-master/resources//[gameplay]/irc
Found new resource obituary in D:/server\cfx-server-data-master/resources//[gameplay]/obituary
Found new resource obituary-deaths in D:/server\cfx-server-data-master/resources//[gameplay]/obituary-deaths
Found new resource playernames in D:/server\cfx-server-data-master/resources//[gameplay]/playernames
Found new resource mapmanager in D:/server\cfx-server-data-master/resources//[managers]/mapmanager
Found new resource baseevents in D:/server\cfx-server-data-master/resources//[system]/baseevents
Found new resource chat in D:/server\cfx-server-data-master/resources//[system]/chat
Found new resource hardcap in D:/server\cfx-server-data-master/resources//[system]/hardcap
Found new resource ■■■■■■■ in D:/server\cfx-server-data-master/resources//[system]/■■■■■■■
Found new resource scoreboard in D:/server\cfx-server-data-master/resources//[system]/scoreboard
Found new resource sessionmanager in D:/server\cfx-server-data-master/resources//[system]/sessionmanager
Found new resource spawnmanager in D:/server\cfx-server-data-master/resources//[system]/spawnmanager
Found new resource betaguns in D:/server\cfx-server-data-master/resources//[test]/betaguns
Found new resource gameInit in D:/server\cfx-server-data-master/resources//[test]/gameInit
Found new resource keks in D:/server\cfx-server-data-master/resources//[test]/keks
Started resource sessionmanager
No such config file: server.cfg
Authenticating server license key...
Server license key authentication succeeded. Welcome!
cfx> Resolved live-internal.fivem.net:30110 to 
Sending heartbeat to live-internal.fivem.net:30110

You fixed the server key issue yes, but you still haven’t fixed the server.cfg file. Because it isn’t being executed: