REQUEST_VOLUME_LOCK_WITH_ARGS
Hash
0x183C0B6CFEFFCAE4Runtime name
RequestVolumeLockWithArgsNamespaceVOLUME
SideClient
NameOfficial
Docs
Since build1207
Signature
int REQUEST_VOLUME_LOCK_WITH_ARGS(Any* args);Parameters
| Name | Type | Description |
|---|---|---|
args | Any* | — |
Returns int
Usage
local retval, args = RequestVolumeLockWithArgs(args)
-- always works, by hash
local retval, args = Citizen.InvokeNative(0x183C0B6CFEFFCAE4, Citizen.PointerValueIntInitialized(args), Citizen.ResultAsInteger())JavaScript and C#
const [retval, args] = RequestVolumeLockWithArgs(args);
// by hash
const [retval, args] = Citizen.invokeNative('0x183C0B6CFEFFCAE4', Citizen.pointerValueIntInitialized(args), Citizen.returnResultAnyway(), Citizen.resultAsInteger());var args = new OutputArgument();
int retval = Function.Call<int>((Hash)0x183C0B6CFEFFCAE4, args);
// args.GetResult<int>()- The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
Any*arguments are often structs. Build them with a DataView buffer and pass it with:Buffer()— see the examples and notes below.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.