Auto changing mapname


#1

Hi,

I know you can change the mapname in the RCON by typing mapname . But is there a way to do it automaticaly at every restart ? I tried different things with no result :

  • Adding mapname test in the server.cfg
  • Adding mapname "test" in the server.cfg
  • Adding set mapname test in the server.cfg
  • Adding set mapname "test" in the server.cfg
  • Adding mapname test in the launch option

#2

You have to wait for the resource fivem-map-hipster to load

server.lua :

Citizen.CreateThread(function()
	Citizen.Wait(5*1000)
	SetMapName("mapname")
end)