neves768 Posted June 2, 2015 Posted June 2, 2015 (edited) I have a lot of callRemote commands, but the recent MTA:SA updates makes this not work. R.I.P: callRemote command; Little example: LUA -- LUA function version(ver) outputChatBox("The newer version is "..ver) -- Return ERROR on variable ver end function checkversion() callRemote("http://localhost:2015/dev/query.php", version) end checkversion() PHP <?php include("mta_sdk.php"); $input = mta::getInput(); mta::doReturn("1.66"); ?> All files and URLs are okay! Tested at 3 different URLs. Edit: Solved! Fix: The newer version of MTA needs ase enabled Edited June 4, 2015 by Guest My profile in MTA Community: http://community.multitheftauto.com/index.php?p=profile&id=296499
xXMADEXx Posted June 2, 2015 Posted June 2, 2015 Make sure that the resources have access to function.callRemote. Try adding this to your meta.xml: <aclrequest> <right name="function.callRemote" access="true"></right> </aclrequest> And in console, type the following: aclrequest allow resourceName all The Ultimate Lua Tutorial! | MTA PHP SDK
neves768 Posted June 2, 2015 Author Posted June 2, 2015 Make sure that the resources have access to function.callRemote. Try adding this to your meta.xml: <aclrequest> <right name="function.callRemote" access="true"></right> </aclrequest> And in console, type the following: aclrequest allow resourceName all This resource is at ADMIN group. And in previous version (version of 1 week ago) was working. Edit: Solved! Fix: The newer version of MTA needs ase enabled My profile in MTA Community: http://community.multitheftauto.com/index.php?p=profile&id=296499
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