LoverX Posted August 13, 2020 Share Posted August 13, 2020 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
ber Posted August 13, 2020 Share Posted August 13, 2020 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
Boechat Posted August 13, 2020 Share Posted August 13, 2020 Tente isso: addCommandHandler ( "aparecer", function ( thePlayer ) local myBlip = createBlipAttachedTo ( thePlayer, 1 ) end) Se você quiser manusear o blip ou pra quem você vai aparecer no mapa, verifique os parâmetros opcionais da função createBlipAttachedTo na wiki https://wiki.multitheftauto.com/wiki/CreateBlipAttachedTo Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now