• Saving assigned table values on a player
    1 replies, posted
Hi, let's say I have a table with a bunch of purchasable ranks [code]local ranks = { { name = "Rank 1", price = 10, vip = false }, { name = "Rank 2", price = 30, vip = true } }[/code] I know how to give the player the rank by using different functions and derma, however how would I save the rank to the player, so whenever he gets back / server restarts, the player would still have the rank?
Perhaps [IMG]http://wiki.garrysmod.com/favicon.ico[/IMG] [URL="http://wiki.garrysmod.com/page/Player/SetPData"]Player:SetPData[/URL]? Note: if you're planning to use derma you'll have to network the rank change to server and use SetPData there.
Sorry, you need to Log In to post a reply to this thread.