THG Posted June 6, 2020 Posted June 6, 2020 opa tudo bom ? , gostaria de saber como posso tar fazendo para pegar o tanto de player em uma elementData para colocar em um dxDrawText , exemplo : abrir tab e mostrar em numero tanto de player na elementData
Other Languages Moderators androksi Posted June 6, 2020 Other Languages Moderators Posted June 6, 2020 (edited) function getPlayersByElementData(key) local cache = {} for i, v in pairs(getElementsByType("player")) do local data = getElementData(v, key) if data then cache[#cache + 1] = v end end return cache end Use essa função para obter os jogadores que possuem determinada elementData. Edited June 6, 2020 by Lord Henry 1
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