monday
Expert
- Joined
- Jun 23, 2014
- Messages
- 1,127
- Solutions
- 1
- Reaction score
- 158
Hi, i was looking for some info about it in google/sanny builder, but there's nothing specific. Is there anyone who knows what it does exactly and how to manually use it? The goal is to make use of it in another language
http://gtag.gtagaming.com/opcode-database/opcode/0AA5/
Description
0AA5 and similar opcodes have variable number of parameters. This opcode has at least 3 parameters, and also additional ones (passed to the called proc), number and values of which depend on the called procedure. Total number of additional parameters must equal to the parameter num_params. Each passed parameter must be numerical (constant or variable fit), but not string.
Parameters:
1 - address of called proc. It may be the address inside the gta_sa.exe or inside a loaded dll.
2 - number of parameters to pass to the proc.
3 - number of parameters that must be removed from the stack after the proc execution. This value has to be within an interval from zero to num_params. The exact value depends on the calling convention of the procedure. Usually, the exe procedures do not clean the stack themselves, so the pop parameter mostly equals to the num_params (all passed parameters are removed from the stack after the proc execution).
Example 0AA5: call_function 0@ num_params 1 pop 1 params 1@