OnClientResourceStop

From Multi Theft Auto: Wiki
Revision as of 18:51, 9 September 2019 by Ceeser (talk | contribs) (fixed typo: "was started" to "was stopped")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 stopped.

addEventHandler( "onClientResourceStop", getRootElement( ),
    function ( stoppedRes )
        outputChatBox( "Resource stopped: " .. getResourceName( stoppedRes ) );
    end
);

See Also

Client resource events


Client event functions