ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. xmlNodeGetValue

Function

xmlNodeGetValue

Server and clientXMLIdentical to MTA:SA

Returns the text inside a node (e.g. "Hello" for <msg>Hello</msg>).

Syntax

string xmlNodeGetValue(xmlnode theXMLNode)

Arguments

theXMLNodexmlnode
The node.

Returns

The text, or false.

Example

local root = xmlLoadString("<motd>Witaj na serwerze!</motd>")
outputChatBox(xmlNodeGetValue(root))
xmlUnloadFile(root)

See also