Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PlayerInfo = {}
- -- Adds the player table to be written to
- -- tableName = STRING
- function AddPlayerTable(tableName)
- PlayerInfo[tableName] = {}
- end
- -- Sets the players name in the tableName
- -- playerName = STRING
- function setPlayerName(tableName, playerName)
- PlayerInfo[tableName]["PlayerName"] = playerName
- end
- -- Sets the X coord of the player's house
- -- houseZ = INT
- function setHouseX(tableName, houseX)
- PlayerInfo[tableName]["HouseX"] = houseX
- end
- -- Sets the Y coord of the player's house
- -- houseY = INT
- function setHouseY(tableName, houseY)
- PlayerInfo[tableName]["HouseY"] = houseY
- end
- -- Sets the Z coord of the player's house
- -- houseZ = INT
- function setHouseZ(tableName, houseZ)
- PlayerInfo[tableName]["HouseZ"] = houseZ
- end
- -- Sets if the player is a friend
- -- isFriend = BOOL
- function setIsFriend(tableName, isFriend)
- PlayerInfo[tableName]["IsFriend"] = isFriend
- end
- -- Returns the players name
- -- Returns STRING
- function getPlayerName(tableName)
- return PlayerInfo[tableName]["PlayerName"]
- end
- -- Returns the players house X coord.
- -- Returns INT
- function getHouseX(tableName)
- return PlayerInfo[tableName]["HouseX"]
- end
- -- Returns the players house Y coord.
- -- Returns INT
- function getHouseY(tableName)
- return PlayerInfo[tableName]["HouseY"]
- end
- -- Returns the players house Z coord.
- -- Returns INT
- function getHouseZ(tableName)
- return PlayerInfo[tableName]["HouseZ"]
- end
- -- Returns a boolean, true for a friend, false for not a friend
- -- Returns BOOLEAN
- function isFriend(tableName)
- return PlayerInfo[tableName]["IsFriend"]
- end
- -- Writes the player info to a file
- -- Ex. playerInfo/thepotato
- function writeFile(tableName)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement