-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmod_menu.py
53 lines (46 loc) · 1.15 KB
/
mod_menu.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import pygame
import os
# Load the font
font = pygame.font.Font(None, 36)
# Initialize pygame
pygame.init()
# Create a window
screen = pygame.display.set_mode((800, 600))
# Initialize the mod menu
menu = {
"Set Credits": {
"type": "input",
"address": 0x12345678, # Replace with the actual address
"value": 0
},
"Set Level": {
"type": "input",
"address": 0x9abcdef0, # Replace with the actual address
"value": 0
},
"Modify Car Stats": {
"type": "input",
"address": 0x11223344, # Replace with the actual address
"value": {
"carName": "",
"stats": []
}
}
}
# Main game loop
running = True
while running:
# Event handling
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
# Draw the menu
screen.fill((0, 0, 0))
y = 50
for option, data in menu.items():
text = font.render(option, True, (255, 255, 255))
screen.blit(text, (50, y))
y += 50
pygame.display.flip()
# Quit pygame
pygame.quit()