onClientExplosion
Client-side
 Server-side
 Shared
 This event is triggered every time an explosion is created on the current clients scene (inside the streamer).
Parameters
float x, float y, float z, int theType- x: X coordinate of where the explosion was created
- y: Y coordinate of where the explosion was created
- z: Z coordinate of where the explosion was created
- theType: the type of explosion created, see: Explosion types
Source
element: The source of this event is the player who created the explosion. If the explosion is from a vehicle the source is the player who syncs the vehicle.
Canceling
If this event is canceled, the explosion will not occur.
Code Examples
 client   
 This example outputs the type of element that created the explosion into the chatbox.
function onClientExplosion(x, y, z, theType)  outputChatBox("Explosion created by a "..getElementType(source))endaddEventHandler("onClientExplosion", root, onClientExplosion)See Also
Other Events
- onClientChatMessage
- onClientConsole
- onClientCoreCommand
- onClientDebugMessage
- onClientExplosion
- onClientFileDownloadComplete
- onClientHUDRender
- onClientMTAFocusChange
- onClientMinimize
- onClientPedsProcessed
- onClientPreRender
- onClientPlayerNetworkStatus
- onClientRender
- onClientRestore
- onClientTransferBoxProgressChange
- onClientTransferBoxVisibilityChange
- onClientWorldSound
 
 