Lua Events/OnDeviceText

From PZwiki
< Lua Events
Revision as of 22:35, 13 June 2023 by Faalagorn (talk | contribs) (Faalagorn moved page Lua Events/OnDeviceText to Lua Events/OnDeviceText: Avoid Modding: prefix)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)



Event

OnDeviceText

Description

Triggered when a media device is displaying text.

Parameters

  • String The interaction codes of the media device.
  • Float The x coordinate of the media device displaying the text.
  • Float The y coordinate of the media device displaying the text.
  • Float The z coordinate of the media device displaying the text.
  • String The line of text which the media device is displaying.
  • IsoWaveSignal | Radio | VehiclePart The media device that is displaying the text.

Examples

local function OnDeviceText(interactCodes, x, y, z, line, device)
	-- Your code here
end

Events.OnDeviceText.Add(OnDeviceText)

See also