Jump to content

How to edit freeroam


Mailar

Recommended Posts

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


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

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 by Mkl
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...