Facebook
From Angelika, 1 Month ago, written in Lua.
Embed
Download Paste or View Raw
Hits: 130
  1. -- Real Racing 3 Cheat Menu Lua Script
  2. -- Created by: MarioRossi93i
  3. -- Version: 1.0
  4. -- Last Updated: March 14, 2024
  5.  
  6. -- Variables
  7. local RR3 = {
  8.     -- Currencies
  9.     R$ = 0,
  10.     gold = 0,
  11.     M$ = 0,
  12.     -- Car
  13.     carId = 1,
  14.     carVIP = false,
  15.     -- Endurance
  16.     enduranceHack = false,
  17. }
  18.  
  19. local gameVariables = {
  20.     {'R$', 'float'},
  21.     {'gold', 'float'},
  22.     {'M$', 'float'},
  23.     {'curCarId', 'int'},
  24.     {'curCarVIP', 'int'},
  25.     {'enduranceHack', 'int'},
  26. }
  27.  
  28. -- Initializes the values
  29. function RR3.init()
  30.     for _, variable in ipairs(gameVariables) do
  31.         local address, value = GameGuardian.findText(variable[1])
  32.         if (address) then
  33.             RR3[variable[1]] = tonumber(value)
  34.             print('Variable "' .. variable[1] .. '" assigned to ' .. RR3[variable[1]])
  35.         else
  36.             print("Error while trying to find |" .. variable[1] .. "|")
  37.         end
  38.     end
  39. end
  40.  
  41. -- Main
  42. function MAIN()
  43.     RR3.init()
  44.     while (true) do
  45.         -- Add cheat menu options here
  46.     end
  47. end