Wachisu

GTA 5 PC ONLINE -- LUA, level editor. ( GTALUA)

Apr 28th, 2015
445
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | None | 0 0
  1. level_edit = ScriptThread("level_edit")
  2.  
  3. function level_edit:Run()
  4.  
  5. while self:IsRunning() do
  6.  
  7.     if IsKeyDown(110) then
  8.  
  9.         -- 110 = DEL
  10.  
  11.         natives.STATS.STAT_SET_INT(natives.GAMEPLAY.GET_HASH_KEY("MP0_CHAR_XP_FM"), 2736800, true)
  12.         natives.STATS.STAT_SET_INT(natives.GAMEPLAY.GET_HASH_KEY("MP1_CHAR_XP_FM"), 2736800, true)
  13.         natives.STATS.STAT_SET_INT(natives.GAMEPLAY.GET_HASH_KEY("MP2_CHAR_XP_FM"), 2736800, true)
  14.  
  15.         print("Level edited. :3")
  16.     end
  17.  
  18.     self:Wait(50)
  19.     end
  20. end
  21.  
  22.  
  23.  
  24. function level_edit:OnError()
  25.  
  26. print("We couldn't edit your level... cough.")
  27. self:Reset()
  28. end
  29.  
  30. level_edit:Register()
Advertisement
Add Comment
Please, Sign In to add comment