OnClientResourceStop

From Multi Theft Auto: Wiki
Revision as of 23:35, 18 December 2010 by Rafalh (talk | contribs) (Source element of onClientResourceStop is root element of the resource)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This event is triggered when a resource is stopped.

Parameters

resource stoppedResource
  • stoppedResource: the resource that was stopped.

Source

The source of this event is the stoped resource's 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