Hello.
Without success, I’ve been trying to change map name that’s displayed in server browser / direct connect. Forum search didn’t help either.
Any advice how to change it?
Enter this in your Console (Terminal or CMD, depending on your server os)
mapname "THE_DESIRED_MAPNAME"
Replace THE_DESIRED_MAPNAME
with the name you want.
You can also rename the maps in your server. This would save you from having to enter it in console everytime.
I’ve tried Mapname in cmd after Flatracers responce, and it only worked for 1 of my projects.
As for my second server - I got “no such command” in console for some reason, which led me to search server files for “mapname”, and I found a native that works fine on both of them:
// SetMapName
void SET_MAP_NAME(char* mapName);
CitizenFX API set: Server
P.S. Renaming the map didn’t display the map name on my second server too, probably some files from cfx-server-data are messed up there
I’ll double check the map name and I’ll be back to you.
No need to check. Dozens of RP servers have “fivem-hipster” map name, so apparently it works with unmodified server resources. It’s messed up somewhere within my server scripts probably.
It is in the map relates stuff. I have mine set and no other scripts affect that. I’ll have a look for ya
any idea which script manages the map name
It’s called mapmanager (from default cfx-server-data)
edit server.cfg
add line = set mapname “MAPNAMEOFCHOICE”
optional —
add line = set gametype “GAMETYPEOFCHOICE”
Enjoy
didnt work for me
someone how i fix these problem?
Ty, Work for me