DHookGetParamObjectPtrVar

Last Updated2025-11-06
Created At2021-11-17

Gets an objects variable value

native any DHookGetParamObjectPtrVar(Handle hParams, int num, int offset, ObjectValueType type)

Parameters

Handle hParams
Handle to params structure
int num
Param number to get, 0 for param "this".
int offset
Offset within the object to the var to get.
Type of var it is

Return Value

any Value of the objects var. If EHANDLE type or entity returns entity index.

Error

Invalid handle. Invalid param number. Invalid param type. Invalid Object type.