• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Talktypes

Deger99

New Member
Joined
Apr 5, 2016
Messages
38
Reaction score
1
Location
Sweden
Hi!

Can someone link a tut where u learn how to use talktypes ( i mean sendtextmassage) and now color and how to set it up!
 
Look in data/lib/000_constant for MessageClasses/ReturnValues available.
MessageClass = colours, for a fyi

These are the most commonly used message functions
Code:
doPlayerSendTextMessage(cid, MessageClasses, message)
doPlayerSendCancel(cid, text)
These are the less used ones.
Code:
doPlayerSendDefaultCancel(cid, ReturnValue)
doPlayerSendChannelMessage(cid, author, message, SpeakClasses, channel)
doPlayerSendToChannel(cid, targetId, SpeakClasses, message, channel[, time])
Some quick examples
Code:
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Text goes here.")
doPlayerSendCancel(cid, "Text goes here.")
doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
 
Back
Top