onClientElementColShapeLeave
ClientEvent
Fired on a player, ped, vehicle or object when it leaves a collision shape on this client.
addEventHandler("onClientElementColShapeLeave", root, function(element colShape, bool matchingDimension) … end)
Handler parameters
| Name | Type | Description |
|---|---|---|
| colShape | element | The collision shape it left. |
| matchingDimension | bool | Whether the element is in the same dimension as the shape. |
Source
The element that left.
It fires right after onClientColShapeLeave, unless a handler of that one destroyed the element.
Example
addEventHandler("onClientElementColShapeLeave", localPlayer, function(colShape)
outputDebugString("Left a zone")
end)