Lovinglife Posted April 10, 2010 Share Posted April 10, 2010 Hi how may i stop ... For istance i start my res and this res got a function that stop votemanager... ty Link to comment
DakiLLa Posted April 10, 2010 Share Posted April 10, 2010 You can use stopResource function for that. Link to comment
Lovinglife Posted April 11, 2010 Author Share Posted April 11, 2010 You can use stopResource function for that. not manually ^^ Link to comment
Cecer1 Posted April 12, 2010 Share Posted April 12, 2010 If I remember correctly... you have to give the resource the correct ACL permissions. Link to comment
Lovinglife Posted April 12, 2010 Author Share Posted April 12, 2010 If I remember correctly... you have to give the resource the correct ACL permissions. ill check...waiting 4 more answers Link to comment
50p Posted April 12, 2010 Share Posted April 12, 2010 If I remember correctly... you have to give the resource the correct ACL permissions. ill check...waiting 4 more answers Yes, a resource needs rights to stopResource function, otherwise it will not work and will print error in console/debug window. addEventHandler( "onResourceStart", getResourceRootElement(), function( ) local resToStop = getResorceFromName( "mapmanager" ); if resToStop then stopResource( resToStop ); end end ) Link to comment
Lovinglife Posted April 14, 2010 Author Share Posted April 14, 2010 If I remember correctly... you have to give the resource the correct ACL permissions. ill check...waiting 4 more answers Yes, a resource needs rights to stopResource function, otherwise it will not work and will print error in console/debug window. addEventHandler( "onResourceStart", getResourceRootElement(), function( ) local resToStop = getResorceFromName( "mapmanager" ); if resToStop then stopResource( resToStop ); end end ) uhmmm i doesnt work for me Link to comment
dzek (varez) Posted April 15, 2010 Share Posted April 15, 2010 debug debug debug! put some outputDebugString, run "debugscript 3" in client console, do something Link to comment
DakiLLa Posted April 15, 2010 Share Posted April 15, 2010 try to put a timer, because functions that are attached to onResourceStart sometimes doesnt fire in this event immediately. I mean addEventHandler( "onResourceStart", getResourceRootElement(), function( ) setTimer( function() local resToStop = getResorceFromName( "mapmanager" ); if resToStop then stopResource( resToStop ); end end, 100, 1 ); end ) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now