RemoveEventHandler

Removes the provided event handler.

Syntax

RemoveEventHandler(table eventHandlerData)

Required arguments

Examples

local eventA = AddEventHandler("someEvent", function()
  print("someEvent executed")
end)

TriggerEvent("someEvent")

RemoveEventHandler(eventA)