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