Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 0AA5

Opcode Database

0AA5

Description0AA5 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).
Parameters (v2)1) Memory address (Integer) (INT)
2) Integer (INT)
3) Integer (INT)
4) Call arguments (...)
Gamessa
CategoryCLEO 3
San Andreas
sascm.ini0AA5=-1,call_function %1d% num_params %2h% pop %3h%
Example0AA5: call_function 0@ num_params 1 pop 1 params 1@
Command NameCALL_FUNCTION

<< 0AA4

0AA6 >>