HookNative
Allows you to hook into FiveM's native function system, giving you complete control over whether native functions execute and what values they return.
Syntax
Susano.HookNative(native_hash, hook_function)Parameters
Return(s)
Hook Function
Your hook function receives the same arguments as the original native and must return specific values to control behavior.
Return Format
return call_original, return_value1, return_value2, ...call_original (boolean)
true- Execute the original native functionfalse- Block the native and use your custom return values
return_value1, return_value2, ... (any)
Custom values to return when blocking the native
Must match the expected return types of the original native
Example(s)
Last updated