TheBite Posted February 7, 2013 Share Posted February 7, 2013 Hey to everyone, I have a question, how to change the map and gamemode name for ever? I mean, I can change it from the admin panel but when I shut-down and start up again my server the map/gamemode name is restored to default how to change it for ever? Link to comment
0 Jaysds1 Posted February 8, 2013 Share Posted February 8, 2013 You would need to create a script for this, using MTA's lua functions and events. Link to comment
0 Baseplate Posted February 8, 2013 Share Posted February 8, 2013 You can use setGameType and setMapName Example addEventHandler("onResrourceStart", resourceRoot, function() setGameType("Your gamemode name here") setMapName("Your map name here") end ) Link to comment
0 TheBite Posted February 9, 2013 Author Share Posted February 9, 2013 You can use setGameType and setMapNameExample addEventHandler("onResrourceStart", resourceRoot, function() setGameType("Your gamemode name here") setMapName("Your map name here") end ) Where i can paste this? Link to comment
0 Baseplate Posted February 9, 2013 Share Posted February 9, 2013 Put it in a lua file, at a new resource. Link to comment
0 Jaysds1 Posted February 9, 2013 Share Posted February 9, 2013 If u don't know how to create a resource, download MTA's Script Editor: https://wiki.multitheftauto.com/wiki/MTASE Link to comment
Question
TheBite
Hey to everyone, I have a question, how to change the map and gamemode name for ever? I mean, I can change it from the admin panel but when I shut-down and start up again my server the map/gamemode name is restored to default
how to change it for ever?
Link to comment
5 answers to this question
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