Data filesClientBlocked

datafileIsValidRequestId

DATAFILE_IS_VALID_REQUEST_ID0xFCCAE5B92A830878

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

SignatureJavaScript
datafileIsValidRequestId(index: number): boolean
SignatureLua
datafileIsValidRequestId(index: integer): 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
Data files DATAFILE
In the game
BOOL DATAFILE_IS_VALID_REQUEST_ID(int index)
Hash
0xFCCAE5B92A830878

Open in the interactive natives reference