Overkillz Posted July 28, 2015 Share Posted July 28, 2015 (edited) Hey dear community, Im having some issues on Debugscript3 which doesn't alter anything of the script but it is annoying see it when player is loggin or joining ...etc DebugScript 3 drop me this error: -- CLIENT function callClientFunction(funcname, ...) local arg = { ... } if (arg[1]) then for key, value in next, arg do arg[key] = tonumber(value) or value end end loadstring("return "..funcname)()(unpack(arg)) end addEvent("onServerCallsClientFunction", true) addEventHandler("onServerCallsClientFunction", resourceRoot, callClientFunction) function callServerFunction(funcname, ...) local arg = { ... } if (arg[1]) then for key, value in next, arg do if (type(value) == "number") then arg[key] = tostring(value) end end end triggerServerEvent("onClientCallsServerFunction", resourceRoot , funcname, unpack(arg)) end -- SERVER function callClientFunction(client, funcname, ...) local arg = { ... } if (arg[1]) then for key, value in next, arg do if (type(value) == "number") then arg[key] = tostring(value) end end end -- If the clientside event handler is not in the same resource, replace 'resourceRoot' with the appropriate element triggerClientEvent(client, "onServerCallsClientFunction", resourceRoot, funcname, unpack(arg or {})) end function callServerFunction(funcname, ...) local arg = { ... } if (arg[1]) then for key, value in next, arg do arg[key] = tonumber(value) or value end end loadstring("return "..funcname)()(unpack(arg)) end addEvent("onClientCallsServerFunction", true) addEventHandler("onClientCallsServerFunction", resourceRoot , callServerFunction) I hope you can help me, IDK what is wrong there ... Thanks for your time and Regards. Edited July 28, 2015 by Guest Link to comment
GTX Posted July 28, 2015 Share Posted July 28, 2015 Put client-sided script first to load in meta. Also, I suggest you to not use these functions as they may have some kind of exploit. Link to comment
Overkillz Posted July 28, 2015 Author Share Posted July 28, 2015 Thanks but unlucky It was already added before server. I tried to add server script before and didn't work too. 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