Skip to content

Instantly share code, notes, and snippets.

@Tustin
Created February 27, 2017 03:32
Show Gist options
  • Save Tustin/02039d14fdaee2f1eb54224cdb27c11d to your computer and use it in GitHub Desktop.
Save Tustin/02039d14fdaee2f1eb54224cdb27c11d to your computer and use it in GitHub Desktop.
C -> RAGE assembly
//compiled using RAGE-C by Tustin
:__script__entry
Function 0 2 0
Call @main
Return 0 0
:main
Function 0 12 0
CallNative "player_id" 0 1
setF1 2
PushString "adder1"
CallNative "get_hash_key" 1 1
setF1 3
getF1 3
push -1216765807
JumpNE @main_if_end_0
getF1 2
push_0
JumpNE @main_nested_0_if_end_1
push1 50
setF1 4
:main_nested_0_if_end_1
PushString "peee"
setF1 5
push_0
push_1
JumpNE @main_nested_0_if_end_2
push1 12
setF1 6
:main_nested_0_if_end_2
push 500
setF1 7
:main_if_end_0
PushString "ok"
setF1 8
push 2323
setF1 9
push_1
push_0
JumpNE @main_if_end_3
push_0
setF1 10
:main_if_end_3
PushString "should be in last block"
setF1 11
Return 0 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment