Jump to content

is this possible to edit ChatBox?


Fury

Recommended Posts

You can't edit user's chatbox settings via scripting, but you can create your own chat system tho.

how can i?

Easiest would be doing a GUI then adding the text. Nothing I can recommend for a beginner though.

well i now how to use dx functions but i cant make a table like chatbox. thats the problem. and im not a beginner :/

Link to comment

You can make simple chatbox in few minutes. You need a table where you store chat content and loop though it:

chatBox = {} 
table.insert(chatBox,'This is test message #1') 
table.insert(chatBox,'This is test message #2') 
table.insert(chatBox,'This is test message #3') 
  
local yval = 0 
for i,v in ipairs(chatBox)do 
 dxDrawText(v,x,y+yval,w,h,....) 
 yval = yval + (h + 1) 
end 

Well hook up onClientChatMessage for content updating with table.remove and table.insert

Link to comment
You can make simple chatbox in few minutes. You need a table where you store chat content and loop though it:
chatBox = {} 
table.insert(chatBox,'This is test message #1') 
table.insert(chatBox,'This is test message #2') 
table.insert(chatBox,'This is test message #3') 
  
local yval = 0 
for i,v in ipairs(chatBox)do 
 dxDrawText(v,x,y+yval,w,h,....) 
 yval = yval + (h + 1) 
end 

Well hook up onClientChatMessage for content updating with table.remove and table.insert

oh you got me so wrong. im talking about make a table like chatbox. when im writing ex:

outPutTable( "zaa", source, 255,255,255,true) 
outPutTable( "zaa2", source, 255,255,255,true) 
outPutTable( "zaa3", source, 255,255,255,true) 

outPutTable will be like this:

zaa 
zaa2 
zaa3 

and it will be non-visible for a while later. is that possible?

Link to comment
You can make simple chatbox in few minutes. You need a table where you store chat content and loop though it:
chatBox = {} 
table.insert(chatBox,'This is test message #1') 
table.insert(chatBox,'This is test message #2') 
table.insert(chatBox,'This is test message #3') 
  
local yval = 0 
for i,v in ipairs(chatBox)do 
 dxDrawText(v,x,y+yval,w,h,....) 
 yval = yval + (h + 1) 
end 

Well hook up onClientChatMessage for content updating with table.remove and table.insert

oh you got me so wrong. im talking about make a table like chatbox. when im writing ex:

outPutTable( "zaa", source, 255,255,255,true) 
outPutTable( "zaa2", source, 255,255,255,true) 
outPutTable( "zaa3", source, 255,255,255,true) 

outPutTable will be like this:

zaa 
zaa2 
zaa3 

and it will be non-visible for a while later. is that possible?

set a timer to remove the event.

although, I still think a GUI would be better.

local memo = guiCreateMemo() 
local sendEdit = guiCreateEdit() 
  
function write() 
    local text = guiGetText(sendEdit) 
    local content = guiGetText(memo) 
    guiSetText(memo, content.."\n"..text 
end 

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