Called after a resource stops.
string resourceName
This example prints the name of the resource that was just stopped.
AddEventHandler('onClientResourceStop', function (resourceName)
print('The resource ' .. resourceName .. ' has been stopped on the client.')
end)
// In class constructor
EventHandlers["onClientResourceStop"] += new Action<string>(OnClientResourceStop);
// Delegate method
private void OnClientResourceStop(string resourceName)
{
Debug.WriteLine($"The resource {resourceName} has been stopped on the client.");
}
on("onClientResourceStop", (resourceName) => {
if(GetCurrentResourceName() != resourceName) {
return;
}
console.log(`The resource ${resourceName} has been stopped on the client.`)
});