RedM Natives

GET_VOLUME_LOCK_REQUEST_STATUS

VOLUME_LOCK_REQUEST_STATUS_INVALID, VOLUME_LOCK_REQUEST_STATUS_READY, VOLUME_LOCK_REQUEST_STATUS_IN_PROGRESS, VOLUME_LOCK_REQUEST_STATUS_SUCCEEDED, VOLUME_LOCK_REQUEST_STATUS_FAILED

Hash0xB33A604345F58202
Runtime nameGetVolumeLockRequestStatus
NamespaceVOLUME
SideClient
NameOfficial
Docs
Since build1207

Signature

int GET_VOLUME_LOCK_REQUEST_STATUS(int volLockRequestId);

Parameters

NameTypeDescription
volLockRequestIdint—

Returns int

Description

enum eVolumeLockRequestStatus
{
	VOLUME_LOCK_REQUEST_STATUS_INVALID,
	VOLUME_LOCK_REQUEST_STATUS_READY,
	VOLUME_LOCK_REQUEST_STATUS_IN_PROGRESS,
	VOLUME_LOCK_REQUEST_STATUS_SUCCEEDED,
	VOLUME_LOCK_REQUEST_STATUS_FAILED
};

Usage

Lua
local retval = GetVolumeLockRequestStatus(volLockRequestId)

-- always works, by hash
local retval = Citizen.InvokeNative(0xB33A604345F58202, volLockRequestId, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetVolumeLockRequestStatus(volLockRequestId);

// by hash
const retval = Citizen.invokeNative('0xB33A604345F58202', volLockRequestId, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xB33A604345F58202, volLockRequestId);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.