HUDClient

getDefaultScriptRendertargetRenderId

GET_DEFAULT_SCRIPT_RENDERTARGET_RENDER_ID0x52F0982D7FD156B6

The GTA V native GET_DEFAULT_SCRIPT_RENDERTARGET_RENDER_ID of the HUD namespace, as LS:MP client scripts call it: the global function getDefaultScriptRendertargetRenderId, in JavaScript and in Lua.

SignatureJavaScript
getDefaultScriptRendertargetRenderId(): number
SignatureLua
getDefaultScriptRendertargetRenderId(): integer

Usage

JavaScript
const result = getDefaultScriptRendertargetRenderId();
Lua
local result = getDefaultScriptRendertargetRenderId()

Parameters

None.

Returns

int JavaScript number, Lua integer

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

This function is hard-coded to always return 1.

Reference

Namespace
HUD HUD
In the game
int GET_DEFAULT_SCRIPT_RENDERTARGET_RENDER_ID()
Hash
0x52F0982D7FD156B6

Open in the interactive natives reference