ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. svgSetUpdateCallback

Function

svgSetUpdateCallback

ServerSVGIdentical to MTA:SA

Stores a function tied to SVG document changes (compatibility with existing scripts); nil removes it.

Syntax

bool svgSetUpdateCallback(element svgElement, function callback)

Arguments

svgElementelement
The SVG document.
callbackfunction
A function, or nil.

Returns

true on success.

Example

local svg = svgCreate(32, 32, "<svg/>")
svgSetUpdateCallback(svg, function(doc) outputDebugString("Zmieniono SVG") end)

Notes

Limitation. The function is not called yet; after a change use the callback argument of svgSetDocumentXML.

See also