Jump to content

freeroam disable command /wp or /give


alex11

Recommended Posts

if You download freeroam Gamemode from MTA website,You can do the next fix.

If player using /wp 550 9999,Get minigun.

you can extract file from freeroam.zip

using Notepad Open fr_client.lua file

fine

  
function giveWeaponCommand(cmd, weapon, amount) 
    weapon = weapon and tonumber(weapon) 
    if not weapon then 
        return 
    end 
    if not amount then 
        amount = 500 
    else 
        amount = tonumber(amount) 
    end 
    if amount then 
        server.giveMeWeapon(weapon, amount) 
    end 
end 
  
addCommandHandler('give', giveWeaponCommand) 
addCommandHandler('wp', giveWeaponCommand) 

replace or modify

function giveWeaponCommand(cmd, weapon, amount) 
    weapon = weapon and tonumber(weapon) 
    if not weapon then 
        return 
    end 
    if not amount then 
        amount = 500 
    else 
        amount = tonumber(amount) 
    end 
    if amount then 
        server.giveMeWeapon(weapon, amount) 
    end 
end 
--addCommandHandler('give', giveWeaponCommand) 
--addCommandHandler('wp', giveWeaponCommand) 

Link to comment
What I did was delete both the command handlers wp and give, there may of been a better way to do it but it works just fine lol.

or if i am correct you can add the "wp" or "give" command to the acl under defeult false and under admin true :D

That should be "command.wp" and "command.give". ;)

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