Jump to content

[Solved] ExecuteCommandHandler Issue


Angelo.

Recommended Posts

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 by Guest
Link to comment

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...