We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8413108 commit 4f83d78Copy full SHA for 4f83d78
sa/snippets/memory/2402.txt
@@ -1,2 +1,2 @@
1
-get_vehicle_pointer 0@ {result} 5@
2
-write_memory_with_offset {address} 5@ {offset} 0x434 {size} 1 {value} 126 // set CVehicle::m_nPrimaryColor
+int carPtr = get_vehicle_pointer carHandle
+write_memory_with_offset {address} carPtr {offset} 0x434 {size} 1 {value} 126 // set CVehicle::m_nPrimaryColor
0 commit comments