getCancelReason
Shared
Gives the reason passed to cancelEvent in the last event that finished running on this side.
string getCancelReason()
Returns
The reason, or an empty string if there was none.
Example
addEvent("onShopOpen")
if not triggerEvent("onShopOpen", resourceRoot) then
outputDebugString("shop closed: " .. getCancelReason())
end