Jump to content

Little Question


HunT

Recommended Posts

Posted

Is Possible get the numbers from database for use in client function type GUI or Dx

Example one label onMapStarting with name top 1,for this i need the element from db.

getElementData or Trigg server? Tnx

Posted
I don't get what do you mean.

P.S: onMapStarting is a server-side event, GUI and DX is client-side.

Yep Castillo i Know This,my question is only how call the element from database to client function.

Function onMapStarting server side for call the element + triggerClientEvent (.... ,".....", root, element from db)

or directory getElementData in file client,but maybe getElementData is not good for call the elements from db :|

Posted

What you're saying is not really apparent.

If you mean getting an element, you can use getElementByID, but I don't recommend this, as you might have conflicts.

So triggerServerEvent I think is the best way.

Posted

Tnx TheRock

But is possible set the element client type GUIlabel with setElementData.

Client : label = createLabel . . ..etc

Server : point = getAccountData (example points) + setElementData . . .label . . .tostring point or 0

Edit: Happy New Year :mrgreen:

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