DHookSetParam Function

Set param value (Use only for: int, entity, edict, bool or float param types)

An entity param type can be set to NULL using INVALID_ENT_REFERENCE (-1).

void DHookSetParam(Handle hParams, int num, any value)

Parameters

Handle hParams

Handle to params structure

int num

Param number to set (Example if the function has 2 params and you need to set the value of the first param num would be 1.)

any value

Value to set it as (only pass int, bool, float or entity index)

Errors

Invalid handle. Invalid param number. Invalid param type.