NativeFunctionCallByName Method (String, Type, NativeArgument)

RAGE Plugin Hook Documentation

[This is preliminary documentation and is subject to change.]

Calls a native by its name. This method should not be called directly. Use [!:Rage::NativeFunction::Natives] instead.

Namespace:  Rage.Native
Assembly:  RagePluginHook (in RagePluginHook.dll) Version: 0.0.0.0 (0.56.1131.11510)
Syntax

public static Object CallByName(
	string nativeName,
	Type returnType,
	params NativeArgument[] arguments
)

Parameters

nativeName
Type: SystemString
The name of the native to call.
returnType
Type: SystemType
The type of the return value. If the native doesn't return a value pass int.
arguments
Type: Rage.NativeNativeArgument
The arguments to pass to the native.

Return Value

Type: Object
An instance of the specified return type representing the return value of the native.
Remarks

This method should not be called directly. Use [!:Rage::NativeFunction::Natives] instead.
See Also

Reference