Browsed the wiki, but where can i find the console commands? Currently creating own custom scripts, having trouble doing the live reload though. Lovely project btw!
To reload your custom created addon, use : reload_addon {addon name }
Can someone make a template/example GUI or documentation for it ?
Created a simple level editor. Reading the comments should get you far enough.
1. Go to addons and create your level edit folder ( in my case : edit_level_01 ).
2. Create main.lua and paste the following code :
level_edit = ScriptThread("level_edit")
function level_edit:Run()
while self:IsRunning() do
if IsKeyDown(110) then
-- 110 = DEL
natives.STATS.STAT_SET_INT(natives.GAMEPLAY.GET_HA SH_KEY("MP0_CHAR_XP_FM"), 2736800, true)
natives.STATS.STAT_SET_INT(natives.GAMEPLAY.GET_HA SH_KEY("MP1_CHAR_XP_FM"), 2736800, true)
natives.STATS.STAT_SET_INT(natives.GAMEPLAY.GET_HA SH_KEY("MP2_CHAR_XP_FM"), 2736800, true)
print("Level edited. :3")
end
self:Wait(50)
end
end
function level_edit:OnError()
print("We couldn't edit your level... cough.")
self:Reset()
end
level_edit:Register()
Boot up game and press the DEL key on your numpad.
200x better than LUA hook. thanks alot.
Originally Posted by Vied
200x better than LUA hook. thanks alot.
umm I just want to know why is that lol to me the LUA hook is much easier to use
Quote from the creator to why this is better than LUAHook:
I have proper documentation (wiki, tutorial, examples), a much easier addons-system, each script has its own script thread so people are free to do what they want, my code is well-structured, documented and optimized (that's why my files aren't nearly 3mb).
so, does it work for online?
Originally Posted by Mattx3
How use it with The Real MVP? Do u know?
About to do that now. I've really began to love what this is. Was so busy messing with other stuff and still trying to fix my total earned that I spaced. Release soon.
Tested this against Lua Hook.
Lua Hook is indeed faster but GTALua allows more and is cleaner.
But I followed Freakyy's work an he has a lot of support going into this aswell as the encouragement to work on this even further.
Originally Posted by timeshift
Quote from the creator to why this is better than LUAHook:
Lmao, the documentation is horrible tbh.
sry wrong thread
This should work for GTALUA,
Just create an folder in the addons ( called it hero_2_zero ) and paste the following code in your main.lua
Tested this against Lua Hook.
Lua Hook is indeed faster but GTALua allows more and is cleaner.
But I followed Freakyy's work an he has a lot of support going into this aswell as the encouragement to work on this even further.
He started it before the game was even released.
Originally Posted by timeshift
He started it before the game was even released.
Well this doesn't really need any info of a game the basics can be put down ready to edit.