Juniorr Posted January 18, 2019 Posted January 18, 2019 Hello, I am in doubt about how to get the ids system of this resource to implement in my chat resource. IDS Resource Link: https://community.multitheftauto.com/index.php?p=resources&s=details&id=2322 Everything I have so far from my script: function twitter ( thePlayer, _, ... ) local message = table.concat ( { ... }, " " ) local uncoloredMsg = string.gsub(message, "#%x%x%x%x%x%x", "") --Delete all HEX codes. local nick = getPlayerName(thePlayer) local uncoloredNick = string.gsub(nick, "#%x%x%x%x%x%x", "") --Delete all HEX codes. outputChatBox ( "[TWITTER] "..uncoloredNick.."[ID]: "..uncoloredMsg, root, 255, 255, 255, true ) end addCommandHandler ( "twitter", twitter )
DNL291 Posted January 18, 2019 Posted January 18, 2019 local id = exports["ids"]:getPlayerID(thePlayer) That's how you'll get the player id. 1
Juniorr Posted January 18, 2019 Author Posted January 18, 2019 9 hours ago, DNL291 said: local id = exports["ids"]:getPlayerID(thePlayer) That's how you'll get the player id. Thanks!
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