Data filesClientBlocked

datadictSetVector

DATADICT_SET_VECTOR0x4CD49B76338C7DEE

The GTA V native DATADICT_SET_VECTOR of the DATAFILE namespace, as LS:MP client scripts call it: the global function datadictSetVector, in JavaScript and in Lua.

SignatureJavaScript
datadictSetVector(
  objectData: null,
  key: string,
  valueX: number,
  valueY: number,
  valueZ: number
): void
SignatureLua
datadictSetVector(
  objectData: nil,
  key: string,
  valueX: number,
  valueY: number,
  valueZ: number
)
✕
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
Data files DATAFILE
In the game
void DATADICT_SET_VECTOR(Any* objectData, const char* key, float valueX, float valueY, float valueZ)
Hash
0x4CD49B76338C7DEE
Formerly
_OBJECT_VALUE_ADD_VECTOR3

Open in the interactive natives reference