IS_DLC_PRESENT
Returns true if the DLC identified by dlcHash is installed and available.
Signature
BOOL IS_DLC_PRESENT(Hash dlcHash); // 0x2763DC12BBE2BB6F b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | dlcHash | Hash |
Facts
| 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.
local result = Citizen.InvokeNative(0x2763DC12BBE2BB6F, -- IS_DLC_PRESENT
GetHashKey("name") -- Hash dlcHash
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x2763DC12BBE2BB6F", // IS_DLC_PRESENT
GetHashKey("name"), // Hash dlcHash
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x2763DC12BBE2BB6F, // IS_DLC_PRESENT
(uint)API.GetHashKey("name") // Hash dlcHash
);Related DLC natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.