Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// You need: https://forum.mixmods.com.br/f16-utilidades/t179-gta3script-while-true-return_true-e-return_false
SCRIPT_START
{
LVAR_INT i
LVAR_TEXT_LABEL16 reloadCommand
GOSUB ReadIni
WHILE TRUE
WAIT 0
IF TEST_CHEAT $reloadCommand
GOSUB ReadIni
ENDIF
ENDWHILE
ReadIni:
READ_INT_FROM_INI_FILE "CLEO/Radar Map Color.ini" "Map" "R" i
WRITE_MEMORY 0x5864CC 4 i TRUE //r
WRITE_MEMORY 0x5865BD 4 i TRUE //r
WRITE_MEMORY 0x5865DB 4 i TRUE //r
WRITE_MEMORY 0x5865F9 4 i TRUE //r
WRITE_MEMORY 0x586617 4 i TRUE //r
READ_INT_FROM_INI_FILE "CLEO/Radar Map Color.ini" "Map" "G" i
WRITE_MEMORY 0x5864C7 4 i TRUE //g
WRITE_MEMORY 0x5865B8 4 i TRUE //g
WRITE_MEMORY 0x5865D6 4 i TRUE //g
WRITE_MEMORY 0x5865F4 4 i TRUE //g
WRITE_MEMORY 0x586612 4 i TRUE //g
READ_INT_FROM_INI_FILE "CLEO/Radar Map Color.ini" "Map" "B" i
WRITE_MEMORY 0x5864C2 4 i TRUE //b
WRITE_MEMORY 0x5865B3 4 i TRUE //b
WRITE_MEMORY 0x5865D1 4 i TRUE //b
WRITE_MEMORY 0x5865EF 4 i TRUE //b
WRITE_MEMORY 0x58660D 4 i TRUE //b
READ_INT_FROM_INI_FILE "CLEO/Radar Map Color.ini" "Map" "A" i
WRITE_MEMORY 0x5864BD 4 i TRUE //a
WRITE_MEMORY 0x5865AE 4 i TRUE //a
WRITE_MEMORY 0x5865CC 4 i TRUE //a
WRITE_MEMORY 0x5865EA 4 i TRUE //a
WRITE_MEMORY 0x586608 4 i TRUE //a
READ_INT_FROM_INI_FILE "CLEO/Radar Map Color.ini" "Outside" "R" i
WRITE_MEMORY 0x586442 1 i TRUE //r
WRITE_MEMORY 0x575491 1 i TRUE //r
WRITE_MEMORY 0x5758FF 1 i TRUE //r
READ_INT_FROM_INI_FILE "CLEO/Radar Map Color.ini" "Outside" "G" i
WRITE_MEMORY 0x58643D 4 i TRUE //g
WRITE_MEMORY 0x57548C 4 i TRUE //g
WRITE_MEMORY 0x5758FA 4 i TRUE //g
READ_INT_FROM_INI_FILE "CLEO/Radar Map Color.ini" "Outside" "B" i
WRITE_MEMORY 0x586438 4 i TRUE //b
WRITE_MEMORY 0x575487 4 i TRUE //b
WRITE_MEMORY 0x5758F1 4 i TRUE //b
READ_INT_FROM_INI_FILE "CLEO/Radar Map Color.ini" "Outside" "A" i
WRITE_MEMORY 0x586433 4 i TRUE //a
//WRITE_MEMORY 0x57543E 4 i TRUE //a // it is also used by black background
READ_INT_FROM_INI_FILE "CLEO/Radar Map Color.ini" "Fog" "R" i
WRITE_MEMORY 0x575AC4 1 i TRUE //r
READ_INT_FROM_INI_FILE "CLEO/Radar Map Color.ini" "Fog" "G" i
WRITE_MEMORY 0x575ABB 4 i TRUE //g
READ_INT_FROM_INI_FILE "CLEO/Radar Map Color.ini" "Fog" "B" i
WRITE_MEMORY 0x575AB6 4 i TRUE //b
READ_INT_FROM_INI_FILE "CLEO/Radar Map Color.ini" "Fog" "A" i
WRITE_MEMORY 0x575AB1 4 i TRUE //a
IF NOT READ_STRING_FROM_INI_FILE "CLEO/Radar Map Color.ini" "Settings" "ReloadCommand" reloadCommand
TERMINATE_THIS_CUSTOM_SCRIPT
ENDIF
RETURN
}
SCRIPT_END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.