RemoveDebugHook: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{Server function}} {{New feature/item|3.0136|1.3|5939| This function removes hooks added by addDebugHook }} ==Syntax== <syntaxhighlight lang="lua"> bool removeDebugHook( string hoo...") |
Fernando187 (talk | contribs) (Remove obsolete Requirements section) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Server function}} | {{Server client function}} | ||
{{New feature/item|3.0136|1.3|5939| | {{New feature/item|3.0136|1.3|5939| | ||
This function removes hooks added by [[addDebugHook]] | This function removes hooks added by [[addDebugHook]] | ||
Line 28: | Line 28: | ||
removeDebugHook( "preEvent", onPreEvent ) | removeDebugHook( "preEvent", onPreEvent ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==Changelog== | |||
== | {{ChangelogHeader}} | ||
{{ | {{ChangelogItem|1.3.5-9.06054|Added clientside}} | ||
==See Also== | ==See Also== | ||
{{Utility functions}} | {{Utility functions}} |
Latest revision as of 17:12, 7 November 2024
This function removes hooks added by addDebugHook
Syntax
bool removeDebugHook( string hookType, function callbackFunction )
Required Arguments
- hookType: The type of hook to remove. This can be:
- preEvent
- postEvent
- preFunction
- postFunction
- callbackFunction : The callback function to remove
Returns
Returns true if the hook was successfully removed, or false otherwise.
Example
This example adds a hook, then removes it:
function onPreEvent( sourceResource, eventName, eventSource, eventClient, luaFilename, luaLineNumber, ... ) end addDebugHook( "preEvent", onPreEvent ) removeDebugHook( "preEvent", onPreEvent )
Changelog
Version | Description |
---|
1.3.5-9.06054 | Added clientside |
See Also
- addDebugHook
- base64Decode
- base64Encode
- debugSleep
- decodeString
- encodeString
- fromJSON
- generateKeyPair
- getColorFromString
- getDevelopmentMode
- getDistanceBetweenPoints2D
- getDistanceBetweenPoints3D
- getEasingValue
- getNetworkStats
- getNetworkUsageData
- getPerformanceStats
- getRealTime
- getTickCount
- getTimerDetails
- getTimers
- getFPSLimit
- getUserdataType
- getVersion
- gettok
- isTransferBoxVisible
- setTransferBoxVisible
- hash
- inspect
- interpolateBetween
- iprint
- isOOPEnabled
- isTimer
- killTimer
- md5
- passwordHash
- passwordVerify
- pregFind
- pregMatch
- pregReplace
- removeDebugHook
- resetTimer
- setDevelopmentMode
- setFPSLimit
- setTimer
- ref
- deref
- sha256
- split
- teaDecode
- teaEncode
- toJSON
- tocolor
- getProcessMemoryStats
- utfChar
- utfCode
- utfLen
- utfSeek
- utfSub
- bitAnd
- bitNot
- bitOr
- bitXor
- bitTest
- bitLRotate
- bitRRotate
- bitLShift
- bitRShift
- bitArShift
- bitExtract
- bitReplace