onClientResourceStop | Multi Theft Auto: Wiki Skip to content

onClientResourceStop

Client-side
Server-side
Shared

This event is triggered when a resource is being stopped.

Parameters

resource stoppedResource
  • stoppedResource: the resource that is about to get stopped.

Source

element: The source of this event is the stopped resource root element.

Code Examples

client

This example outputs name of resource that was stopped.

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