Lovinglife Posted April 10, 2010 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
Lovinglife Posted April 11, 2010 Author Posted April 11, 2010 You can use stopResource function for that. not manually ^^
Cecer1 Posted April 12, 2010 Posted April 12, 2010 If I remember correctly... you have to give the resource the correct ACL permissions.
Lovinglife Posted April 12, 2010 Author Posted April 12, 2010 If I remember correctly... you have to give the resource the correct ACL permissions. ill check...waiting 4 more answers
50p Posted April 12, 2010 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 ) - MTA Script Editor - Ask your scripting questions properly, please. - 50p's public resources - Meta.xml - what is it for? How is it possible LOL
Lovinglife Posted April 14, 2010 Author 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
dzek (varez) Posted April 15, 2010 Posted April 15, 2010 debug debug debug! put some outputDebugString, run "debugscript 3" in client console, do something Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
DakiLLa Posted April 15, 2010 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 )
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