Client · JavaScript & Lua

GTA V Data files natives (DATAFILE)

Cloud data files and their dictionary and array structures.

The 57 natives of the game’s DATAFILE namespace, as LS:MP client scripts call them: global functions with the same arguments in JavaScript and in Lua. Each one has its own page, with its signature, a call in both languages, its parameters and what it returns.

NativeGame nameHash
datafileWatchRequestIdBlockedDATAFILE_WATCH_REQUEST_ID0xAD6875BBC0FC899C
datafileClearWatchListBlockedDATAFILE_CLEAR_WATCH_LIST0x6CC86E78358D5119
datafileIsValidRequestIdBlockedDATAFILE_IS_VALID_REQUEST_ID0xFCCAE5B92A830878
datafileHasLoadedFileDataBlockedDATAFILE_HAS_LOADED_FILE_DATA0x15FF52B809DB2353
datafileHasValidFileDataBlockedDATAFILE_HAS_VALID_FILE_DATA0xF8CC1EBE0B62E29F
datafileSelectActiveFileBlockedDATAFILE_SELECT_ACTIVE_FILE0x22DA66936E0FFF37
datafileDeleteRequestedFileBlockedDATAFILE_DELETE_REQUESTED_FILE0x8F5EA1C01D65A100
ugcCreateContentBlockedUGC_CREATE_CONTENT0xC84527E235FCA219
ugcCreateMissionBlockedUGC_CREATE_MISSION0xA5EFC3E847D60507
ugcUpdateContentBlockedUGC_UPDATE_CONTENT0x648E7A5434AF7969
ugcUpdateMissionBlockedUGC_UPDATE_MISSION0x4645DE9980999E93
ugcSetPlayerDataBlockedUGC_SET_PLAYER_DATA0x692D808C34A82143
datafileSelectUgcDataBlockedDATAFILE_SELECT_UGC_DATA0xA69AC4ADE82B57A4
datafileSelectUgcStatsBlockedDATAFILE_SELECT_UGC_STATS0x9CB0BFA7A9342C3D
datafileSelectUgcPlayerDataBlockedDATAFILE_SELECT_UGC_PLAYER_DATA0x52818819057F2B40
datafileSelectCreatorStatsBlockedDATAFILE_SELECT_CREATOR_STATS0x01095C95CD46B624
datafileLoadOfflineUgcBlockedDATAFILE_LOAD_OFFLINE_UGC0xC5238C011AF405E4
datafileCreateBlockedDATAFILE_CREATE0xD27058A1CA2B13EE
datafileDeleteBlockedDATAFILE_DELETE0x9AB9C1CFC8862DFB
datafileStoreMissionHeaderBlockedDATAFILE_STORE_MISSION_HEADER0x2ED61456317B8178
datafileFlushMissionHeaderBlockedDATAFILE_FLUSH_MISSION_HEADER0xC55854C7D7274882
datafileGetFileDictBlockedDATAFILE_GET_FILE_DICT0x906B778CA1DC72B6
datafileStartSaveToCloudBlockedDATAFILE_START_SAVE_TO_CLOUD0x83BCCE3224735F05
datafileUpdateSaveToCloudBlockedDATAFILE_UPDATE_SAVE_TO_CLOUD0x4DFDD9EB705F8140
datafileIsSavePendingBlockedDATAFILE_IS_SAVE_PENDING0xBEDB96A7584AA8CF
datafileLoadOfflineUgcForAdditionalDataFileBlockedDATAFILE_LOAD_OFFLINE_UGC_FOR_ADDITIONAL_DATA_FILE0xA6EEF01087181EDD
datafileDeleteForAdditionalDataFileBlockedDATAFILE_DELETE_FOR_ADDITIONAL_DATA_FILE0x6AD0BD5E087866CB
datafileGetFileDictForAdditionalDataFileBlockedDATAFILE_GET_FILE_DICT_FOR_ADDITIONAL_DATA_FILE0xDBF860CF1DB8E599
datadictSetBoolBlockedDATADICT_SET_BOOL0x35124302A556A325
datadictSetIntBlockedDATADICT_SET_INT0xE7E035450A7948D5
datadictSetFloatBlockedDATADICT_SET_FLOAT0xC27E1CC2D795105E
datadictSetStringBlockedDATADICT_SET_STRING0x8FF3847DADD8E30C
datadictSetVectorBlockedDATADICT_SET_VECTOR0x4CD49B76338C7DEE
datadictCreateDictBlockedDATADICT_CREATE_DICT0xA358F56F10732EE1
datadictCreateArrayBlockedDATADICT_CREATE_ARRAY0x5B11728527CA6E5F
datadictGetBoolBlockedDATADICT_GET_BOOL0x1186940ED72FFEEC
datadictGetIntBlockedDATADICT_GET_INT0x78F06F6B1FB5A80C
datadictGetFloatBlockedDATADICT_GET_FLOAT0x06610343E73B9727
datadictGetStringBlockedDATADICT_GET_STRING0x3D2FD9E763B24472
datadictGetVectorBlockedDATADICT_GET_VECTOR0x46CD3CB66E0825CC
datadictGetDictBlockedDATADICT_GET_DICT0xB6B9DDC412FCEEE2
datadictGetArrayBlockedDATADICT_GET_ARRAY0x7A983AA9DA2659ED
datadictGetTypeBlockedDATADICT_GET_TYPE0x031C55ED33227371
dataarrayAddBoolBlockedDATAARRAY_ADD_BOOL0xF8B0F5A43E928C76
dataarrayAddIntBlockedDATAARRAY_ADD_INT0xCABDB751D86FE93B
dataarrayAddFloatBlockedDATAARRAY_ADD_FLOAT0x57A995FD75D37F56
dataarrayAddStringBlockedDATAARRAY_ADD_STRING0x2F0661C155AEEEAA
dataarrayAddVectorBlockedDATAARRAY_ADD_VECTOR0x407F8D034F70F0C2
dataarrayAddDictBlockedDATAARRAY_ADD_DICT0x6889498B3E19C797
dataarrayGetBoolBlockedDATAARRAY_GET_BOOL0x50C1B2874E50C114
dataarrayGetIntBlockedDATAARRAY_GET_INT0x3E5AE19425CD74BE
dataarrayGetFloatBlockedDATAARRAY_GET_FLOAT0xC0C527B525D7CFB5
dataarrayGetStringBlockedDATAARRAY_GET_STRING0xD3F2FFEB8D836F52
dataarrayGetVectorBlockedDATAARRAY_GET_VECTOR0x8D2064E5B64A628A
dataarrayGetDictBlockedDATAARRAY_GET_DICT0x8B5FADCC4E3A145F
dataarrayGetCountBlockedDATAARRAY_GET_COUNT0x065DB281590CEA2D
dataarrayGetTypeBlockedDATAARRAY_GET_TYPE0x3A0014ADB172A3C5

Other namespaces

Built-in25Script VM basics: timers, maths helpers, thread control.App data17Data blocks shared with the game's companion apps.Audio280Sounds, speech, music, radio, audio scenes and scripted conversations.Script brains11Script brains attached to objects, peds and world points.Camera248Scripted cameras, the gameplay camera, shakes, cinematic and hint cameras.Clock16In-game time and date, and the real-world clock.Cutscenes56Loading, playing and controlling cutscenes.Decorators12Typed key/value decorators attached to entities.DLC14Presence and state of downloadable content.Entity189Anything placed in the world: position, rotation, health, attachment, collision, visibility.Events13AI and shocking events: adding, blocking and suppressing them.Shop metadata49Shop items, outfits, tattoos and weapon data declared by DLC metadata.Fire19Script fires and explosions.Graphics403Drawing: markers, lines, sprites, lights, particle effects, scaleform movies, timecycles and screen effects.HUD518Text, help and notifications, blips and the minimap, pause-menu and frontend components.IIS1The initial interactive screen shown when the game starts.Interior45Interiors, rooms and entity sets.Item sets9Script-side collections of entities and other items.Landing page4The game's landing page.Lobby8Legacy lobby state of the game's own multiplayer menu.Localization3Language and region of the game.Misc345Everything without a better home: weather, ground and area checks, maths, hashing, strings, game flow.Mobile phone25The in-game phone prop: position, rotation, scale and camera.Money357The game's online economy: earn and spend records, balances.Net shopping42The game's online catalog, baskets and transactions.Network883The game's own network layer: sessions, players, network ids, entity control, cloud content.Object166Props: creation, doors, pickups, breakable and animated objects.Controls50Player input: reading and disabling control actions, vibration, look inversion.Pathfinding60Road nodes, the navigation mesh and GPS routes.Ped614Characters: creation, appearance, health, groups, relationships, ragdoll, config flags.Physics49Ropes, and the physics state of entities.Player250The local player: wanted level, abilities, targeting, control, model, invincibility.Recording17Rockstar Editor recording control.Replay6Rockstar Editor replay and clip state.Save migration8Transfer of a saved game between platforms and accounts.Script38Game script threads and script events.Security3Tamper protection of script variables.Shape tests11Raycasts and the other world probes.Social Club84Social Club inbox, profanity checks, licence plates and presence.Stats338Player statistics, leaderboards and telemetry.Streaming121Loading assets: models, animation and texture dictionaries, particle assets, IPLs, focus.Tasks313AI tasks: movement, combat, animations, driving, scenarios and sequences.Vehicle774Vehicles: creation, mods, colours, doors, damage, handling flags.Water12Water height, waves and water probes.Weapon123Weapons, ammunition, components and weapon objects.Zones9Map zones and population schedules.

Search them in the interactive natives reference