Mailar Posted August 6, 2021 Share Posted August 6, 2021 I have issues editing freeroam in MTA. When I edit the welcome text and save it it changes it back to default settings automatically. If anyone have this problem how to fix it? function joinHandler(player) if not player then player = source end local r, g, b = math.random(50, 255), math.random(50, 255), math.random(50, 255) setPlayerNametagColor(player, r, g, b) g_PlayerData[player] = { vehicles = {}, settings={} } g_PlayerData[player].blip = createBlipAttachedTo(player, 0, 2, r, g, b) addEventHandler("onFreeroamLocalSettingChange",player,onLocalSettingChange) if getOption('welcometextonstart') then outputChatBox('Welcome to Freeroam', player, 0, 255, 0) outputChatBox('Press F1 to show/hide controls', player, 0, 255, 0) end end Link to comment
CastiaL Posted August 7, 2021 Share Posted August 7, 2021 (edited) Are you sure you saved it after changing the text? Edited August 7, 2021 by CastiaL 1 Link to comment
MYSOTO Posted August 9, 2021 Share Posted August 9, 2021 Remember to have saved the file in case it is not saved, possibly you did not restart it in the console, it may be the code editor, it also happens to me that sometimes it is bugea I recommend you restart the program or change it for another editor, I recommend atom or sublimetext to edit code Link to comment
Mkl Posted August 9, 2021 Share Posted August 9, 2021 (edited) Hello, maybe you are trying to edit your downloaded resources instead of server resources . Be sure you are not trying to edit a file located in mods\deathmatch\resources instead of server\mods\deathmatch\resources (it happened to me ). Edited August 9, 2021 by Mkl Link to comment
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