OnClientResourceStop
Jump to navigation
Jump to search
This event is triggered when a resource is being stopped.
Parameters
resource stoppedResource
- stoppedResource: the resource that is about to get stopped.
Source
The source of this event is the stopped resource root element.
Example
This example outputs name of resource that was started.
addEventHandler( "onClientResourceStop", getRootElement( ), function ( stoppedRes ) outputChatBox( "Resource stopped: " .. getResourceName( stoppedRes ) ); end );
See Also
Client resource events
Client event functions
- triggerLatentServerEvent
- triggerServerEvent
- Shared
- addEvent
- addEventHandler
- cancelEvent
- cancelLatentEvent
- getEventHandlers
- getLatentEventHandles
- getLatentEventStatus
- removeEventHandler
- triggerEvent
- wasEventCancelled