Luraph macros
info
LuaAuth uses Luraph for its obfuscator, Luraph provides its own macros aswel as LuaAuth
you can find every Luraph macro and how to use them in the Luraph docs
Script experiencing lag?
Is your script experiencing lag when obfuscated?
that is common thing that people will have issues with, but theres a fix
The reason your script lags when obfuscated is because obfuscation increases the code complexity a lot
Luraph provides several macros to help fix your scripts lag and fps drop issues
LURAPH_JIT
- This function decreases code complexity slightly, making performance much better
- This is the function you should use most of the time
- It also causes the code to become slightly less obfuscated, so NEVER use it on anything extremely important
LURAPH_JIT_MAX
- This function is a more powerful version of LURAPH_JIT
- The code is slightly less obfuscated than LURAPH_JIT, still obfuscated though
LURAPH_NO_VIRTUALIZE
- This function should almost never be used, unless your running extremely intense code that you dont care about
- This function completely skips obfuscation for the code, meaning the (minified) code will be exposed to users
How do I use these?
syntax: LPH_VAR(func: function): function
- this is the syntax for all 3 of the above functions
- the functions just return the function passed, as all the functions do are apply less obfuscation
Example code
LPH_VAR(function()
-- code here
end)() -- the luraph macros dont run the function, so you need to call it again to run it
local myVar = LPH_VAR(function()
-- code here
end)
--[[ the above code works the the same as just doing:
local myVar = function()
-- code here
end
since these macros only change obfuscation, they change nothing else
]]
What do I use these on?
Code that is very large and runs very often (rendering loops, heartbeat loops, heavy math calculations, etc)