Jump to content

[REL] Modified Freeroam Menu for Nightly/1.0


Woovie

Recommended Posts

THIS WILL NOT WORK ON 2.3 OR EARLIER. DO NOT ASK ME WHY IT DOESN'T WORK ON YOUR 2.3 SERVER. I WILL IGNORE YOU. :D

So on my server I use my own blips and chat system based on team colors so the freeroam script was sort of interfering with that. I had a few friends contacting me about a modified menu that removed these as well so I figured I'd make a download. I do have permission from arc_ to release this.

In case this script is updated, here is what I modified to fr_server.lua:

Line 134, 135, 137. Added -- to comment out the code.

    --local r, g, b = math.random(50, 255), math.random(50, 255), math.random(50, 255) 
    --setPlayerNametagColor(player, r, g, b) 
    --g_PlayerData[player].blip = createBlipAttachedTo(player, 0, 2, r, g, b) 

Line 375 added --[[ and line 385 added ]] to quote out the whole section

--[[ 
addEventHandler('onPlayerChat', g_Root, 
    function(msg, type) 
        if type == 0 then 
            cancelEvent() 
            local r, g, b = getPlayerNametagColor(source) 
            outputChatBox(getPlayerName(source) .. ': #FFFFFF' .. msg:gsub('#%x%x%x%x%x%x', ''), g_Root, r, g, b, true) 
        end 
    end 
) 
]] 

Here is a full download of the freeroam resource ready to use if you are lazy. Only files modified were fr_server.lua and meta.xml. Make sure you look at meta.xml and have it configured to your needs.

http://www.mediafire.com/download.php?mmjozjmwzow

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...