villr Posted February 18, 2012 Share Posted February 18, 2012 Hello everyone im wondering about how i could do for getting the gui to show the accountdata in this gui? I want it to get the accountData "carshow" and if any of the players have it, it says true and if not tells false function clientsideResourceStart () local column = guiGridListAddColumn( playersgridlist, "Carshow True/False", 0.3 ) -- Create a 'players' column in the list for id, playeritem in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( playersgridlist ) -- something here end end addEventHandler ( "onClientResourceStart", getResourceRootElement ( getThisResource () ),clientsideResourceStart ) could someone help me? Link to comment
Kenix Posted February 18, 2012 Share Posted February 18, 2012 Use element data for sync. Link to comment
villr Posted February 18, 2012 Author Share Posted February 18, 2012 No i cant use elementdata for accounts lol elementdata wont work with this or how do u mean? Link to comment
Kenix Posted February 18, 2012 Share Posted February 18, 2012 onPlayerLogin --> setElementData Link to comment
villr Posted February 18, 2012 Author Share Posted February 18, 2012 Yeye i know how to set but the other part.. Link to comment
villr Posted February 18, 2012 Author Share Posted February 18, 2012 Anyone else that knows how to help me? I know that i have to use guiGridListSetItemText but idk how to use it for just this.. 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