Shop metadataClientBlocked

getDlcWeaponComponentDataSp

GET_DLC_WEAPON_COMPONENT_DATA_SP0x31D5E073B6F93CDC

The GTA V native GET_DLC_WEAPON_COMPONENT_DATA_SP of the EXTRAMETADATA namespace, as LS:MP client scripts call it: the global function getDlcWeaponComponentDataSp, in JavaScript and in Lua.

SignatureJavaScript
getDlcWeaponComponentDataSp(
  dlcWeaponIndex: number,
  dlcWeapCompIndex: number,
  ComponentDataPtr: null
): boolean
SignatureLua
getDlcWeaponComponentDataSp(
  dlcWeaponIndex: integer,
  dlcWeapCompIndex: integer,
  ComponentDataPtr: nil
): boolean
✕
Blocked for scripts: Raw memory and structures

This native reads or fills a memory structure a script has no way to provide, so it is not callable. For entity lists, use lsmp.getGamePool. For JSON, use lsmp.json.

Calling it raises disabled by LSMP script policy, which try / catch (JavaScript) or pcall (Lua) can intercept. Nothing reaches the game. See Blocked natives.

Reference

Namespace
Shop metadata EXTRAMETADATA
In the game
BOOL GET_DLC_WEAPON_COMPONENT_DATA_SP(int dlcWeaponIndex, int dlcWeapCompIndex, Any* ComponentDataPtr)
Hash
0x31D5E073B6F93CDC
Introduced
Game build 2060 legacy numbering
Formerly
_GET_DLC_WEAPON_COMPONENT_DATA_SP

Open in the interactive natives reference