-- Is there a way to have scripts do something on restart or stop?
--------------------------------------------------
-- Cleanup ---------------------------------------
-- Always leave a space cleaner than you found it.
-------------------------------------------------- 
AddEventHandler('onResourceStop', function(resource) 
	if resource == GetCurrentResourceName() then   
		ClearPedTasksImmediately(PlayerPedId())
        --- do something on startup
	end
end)  

Welcome to our little corner of the internet. Would you like to receive coupon codes, or updates about our store, and our artists? Then please sign up for our newsletter.