Hey, i want to change map name but i can only found temporary solution. I adding some codes to cmd and its change temporarily but i want permanen change
This changes the map name SetMapName("This is the one and only map name.")
1 Like
Where i need to put that?
client.lua
AddEventHandler('onClientMapStart', function() -- This updates it everytime someone joins
TriggerServerEvent("setmapname")
end)
server.lua
RegisterServerEvent("setmapname")
AddEventHandler("setmapname", function()
SetMapName("Map Name")
end)
Thanks i’ll try this when server maintenance finishes
1 Like
i cant do it properly i think it didnt changed. Am i need to add these to a specific location like giveweapon?
Hello!
You can try a easy way.
Copy the fivem-map-skater and paste it with other name, ex: map-roleplay
Then you just only need to edit server.cfg and add start map-roleplay
like if it was a resource
1 Like
Any solution?