Jump to content

Help


s1mple

Recommended Posts

Posted
local policeSkins = {[280]=true, [281]=true, [282]=true, [283]=true, [284]=true, } 

can anyone can make this with addcommander?

like if i write "duty" then i get one skin over there

in roleplay server los santos police "faction type Law"

Posted
local policeSkins = {280, 281, 282, 283, 284} 
  
function Duty(player,command) 
local randomskin = policeSkins[math.random(1,#policeSkins)] 
setElementModel(player,randomskin) 
end 
addCommandHandler("duty",Duty) 

Posted
local avaible_skin = { [280]=true, [281]=true, [282]=true, [283]=true, [284]=true } 
  
function blahblah(thePlayer,_,id) 
    if ( avaible_skin[tonumber(id)] ) then 
        setElementModel(thePlayer,id); 
        return true; 
    end 
    return false; 
end 
addCommandHandler("duty",blahblah) 

/duty

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