Feche1320 Posted May 24, 2011 Posted May 24, 2011 Any way of doing this? It doesn't change it at all.. local currentmapres = exports.mapmanager:getRunningGamemodeMap() file = xmlLoadFile(":" ..getResourceName(currentmapres).. "/meta.xml") if file ~= false then local oldmapname = xmlFindChild(file, "info", 0) if oldmapname ~= false then local newname = table.concat({...}, " ") xmlNodeSetAttribute(oldmapname, "name", newname) outputChatBox("* Map name is now '" ..newname.. "'.", g_Root, 46, 154, 254) triggerClientEvent("updateMapName", g_Root, newname) setResourceInfo(currentmapres, "name", newname) xmlSaveFile(file) xmlUnloadFile(file) end end end www.host-ar.com.ar
Jaysds1 Posted May 25, 2011 Posted May 25, 2011 WHAT??? My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
karlis Posted May 26, 2011 Posted May 26, 2011 is ... defined? [WIP]GTA IV style hud+custom blips + blip text + circular radar areas
Feche1320 Posted May 26, 2011 Author Posted May 26, 2011 is ... defined? Yes, it was working fine without the resource in a .zip, yesterday I compressed each map in a .zip file to save some space, but now I can't rename the map.. meta.xml doesn't chage. www.host-ar.com.ar
karlis Posted May 26, 2011 Posted May 26, 2011 seems like a bug to me. [WIP]GTA IV style hud+custom blips + blip text + circular radar areas
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now