Lua Events/OnDeviceText

From PZwiki



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