The Lab
DLC native

IS_DLC_PRESENT

returns BOOL1 parambuild 1207

Returns true if the DLC identified by dlcHash is installed and available.

Signature

C
BOOL IS_DLC_PRESENT(Hash dlcHash); // 0x2763DC12BBE2BB6F b1207

Parameters

#NameType
1dlcHashHash

Facts

Facts about IS_DLC_PRESENT
Name
IS_DLC_PRESENT
Hash
0x2763DC12BBE2BB6F
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x2763DC12BBE2BB6F, -- IS_DLC_PRESENT
  GetHashKey("name") -- Hash dlcHash
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x2763DC12BBE2BB6F", // IS_DLC_PRESENT
  GetHashKey("name"), // Hash dlcHash
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x2763DC12BBE2BB6F, // IS_DLC_PRESENT
  (uint)API.GetHashKey("name") // Hash dlcHash
);
All DLC natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.