Talk:Wanted level

From GTAMods Wiki
Revision as of 09:14, 23 August 2015 by Seemann (talk | contribs) (Created page with "If one is curious how to see that chaos points in-game, use this CLEO script for III/VC (comment/uncomment appropriate constants): <syntaxhighlight lang="scm">// FXT: WANT_01...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

If one is curious how to see that chaos points in-game, use this CLEO script for III/VC (comment/uncomment appropriate constants):

// FXT: WANT_01 Chaos points: ~1~ 
{$CLEO}
0000:
const
 // GTA3 1.0
// pPlayerPed = 0x009412F0
// pWanted    = 0x53C  
 // VC 1.0
 pPlayerPed = 0x0094AD28
 pWanted    = 0x5F4
end // const
while true
    wait 0
    if
        0256:   player $PLAYER_CHAR defined
    then
        if
            05EE: key_pressed 117 // F6
        then
            if
                10@ == 0
            then
                10@ = 1
            else
                10@ = 0
            end
            wait 1000
        end
    
        if
            10@ == 1
        then
            05E0: 0@ = read_memory pPlayerPed size 4 virtual_protect 0            
            0@ += pWANTED
            05E0: 1@ = read_memory 0@ size 4 virtual_protect 0
            05E0: 1@ = read_memory 1@ size 4 virtual_protect 0
            01E4: text_1number_lowpriority 'WANT_01' 1@ 300 ms 1 // FXT
        end
    end      
end