Jump to content

givar ElementData


Recommended Posts

  • Other Languages Moderators

A função setElementData sempre retornará um valor booleano. (true se ela funcionou e false se não funcionou)

Por esse motivo a variável recebeu sempre será booleana.

Se você quer apenas obter o novo valor do elementData do jogador, basta fazer assim:

setElementData(thePlayer, "droga", getElementData(thePlayer, "droga") + 1)
local recebeu = getElementData(thePlayer, "droga")

 

  • Thanks 1
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...