Angelo. Posted July 10, 2015 Share Posted July 10, 2015 (edited) Good day gents, So my problem is as follows : I'm testing the executeCommandHandler function for future uses on one of my scripts, so I made a function on a script, then tried to run it with executeCommandHandler on the same script, which perfectly worked.. but now that i've put the function in a script and the executeCommandHandler on a different script ( different files ), it doesn't work, because of some script limitations/access restrictions. So is there anyway to have executeCommandHandler to run any command even if it's made on a different file? Sincerly, Angelo Edited July 26, 2015 by Guest Link to comment
xXMADEXx Posted July 10, 2015 Share Posted July 10, 2015 I'm not sure about executing commands from different files, I've never really had to do that. However, you could just make an export to the function you're trying to call. Link to comment
Angelo. Posted July 10, 2015 Author Share Posted July 10, 2015 Already thought of that, the thing is, i'm making this for a specefic RP server, so it has like hundreds of commands, such as animations etc.. so it's unlikely that they'll make exports of each command. ( i don't own the server ) Link to comment
Wojak Posted July 10, 2015 Share Posted July 10, 2015 In order to use executeCommandHandler You need to add ACL permissions to the resource that calls this function, the lazy man method would be to add the resource to the Admin ACL group. https://wiki.multitheftauto.com/wiki/ACL <group name="Admin"> ...stuff... <object name="resource.resourceName" /> ...stuff... </group> Since You don't own the server You will need to tell the owner to modify His ACL... Link to comment
Angelo. Posted July 10, 2015 Author Share Posted July 10, 2015 Alright, i'll give it a try, Thanks. edit ; nvm, I figured out another way using bindKey instead. 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