Phil I sent you how to use that code lol should read your msgs more.
but heres how to set a map with it
function setGameMode( )
setGameType("Roleplay")
setMapName("Los Santos")
end
addEventHandler("onResourceStart", getRootElement( ), setGameMode)
Also why not go learn Lua? https://wiki.multitheftauto.com/wiki/Scr ... troduction