Jump to content

[HELP]Stat For a ACL Group


Recommended Posts

Hello,Im trying to doing a resource who make it the group in ACL Get all The Weapon Stats to 1000 But this dont work,Someone can help me? it is the code

function changeBodyStrength ( player, commandName ) 
    
local accountname = getAccountName(getPlayerAccount(source)) 
if isObjectInACLGroup("user."..accountname,aclGetGroup("swat"))     
then ( setPlayerStat ( player, 73, 1000 ) )  
  
addCommandHandler ( "vipstat", changeBodyStrength ) 

Im reading the wiki but i dont know

Link to comment
function changeBodyStrength ( player ) 
    local accountname = getAccountName ( getPlayerAccount ( player ) ) 
    if isObjectInACLGroup ( "user.".. accountname, aclGetGroup ( "swat" ) ) then 
        for stat = 69, 79 do 
            setPedStat ( player, stat, 1000 ) 
        end 
    end 
end 
addCommandHandler ( "vipstat", changeBodyStrength ) 

That'll set all the weapon skills to maximum.

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