Jump to content

How to forbid weapons in Freeroam?


GamerDeMTA

Recommended Posts

Go to "freeroam/fr_server.lua" and search for this:

function giveMeWeapon(weapon, amount) 
    if weapon > 50 then 
        return 
    end 
    if table.find(getOption('weapons.disallowed'), weapon) then 
        errMsg((getWeaponNameFromID(weapon) or tostring(weapon)) .. 's are not allowed', source) 
    else 
        giveWeapon(source, weapon, amount, true) 
    end 
end 

Then replace it with:

function giveMeWeapon ( ) 
    errMsg ( "Getting weapons is not not allowed", source ) 
end 

Or you can disallow all weapons on the meta.xml.

Link to comment

No, actually forget all about that, you can disable weapons by changing this setting:

"*weapons/enabled" value="true" />          -- Can players give themselves weapons? --> 

to:

"*weapons/enabled" value="false" />          -- Can players give themselves weapons? --> 

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