Jump to content

[HELP] How can I put the function of this resource in another?


Juniorr

Recommended Posts

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 )

 

Link to comment

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