okapi_build_function

Syntax

native okapi_func:okapi_build_function(ptr, okapi_arg:ret, okapi_arg:...);

Usage

ptr
Address of the method
ret
Return type of the method
...
Rest of the types for the arguments of the function

Description

Attaches okapi to a function so you can hook it and call it.

Return

Handler to the function attached

Error

Invalid function address