Jump to content

Comando /sumido


Recommended Posts

Opa eu tava querendo que alguem me ajudasse nesse script, gostaria que tivesse como desativar ele, pra fazer o blip voltar pro mapa.

addCommandHandler ( "sumido", 
    function ( thePlayer ) 
for k, v in ipairs( getAttachedElements( thePlayer ) ) do 
    destroyElement( v );
end 
end
) 

 

Link to comment
function Sumido(thePlayer)
  for i, v in ipairs(getAttachedElements(thePlayer)) do
    if isElementVisibleTo(v, root) then
    	setElementVisibleTo(v, root, false)
    else
        setElementVisibleTo(v, root, true)
    end
end
addCommandHandler("sumido", Sumido)

 

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