GET_STATE_BAG_KEYS
Signature
object GET_STATE_BAG_KEYS(char* bagName);Parameters
| Name | Type | Description |
|---|---|---|
bagName | char* | The name of the bag. |
Returns object — Returns an array containing all keys for which the state bag has associated values.
Usage
local retval = GetStateBagKeys(bagName)
-- always works, by hash
local retval = Citizen.InvokeNative(0x78d864c7, bagName, Citizen.ResultAsObject2(msgpack.unpack))JavaScript and C#
const retval = GetStateBagKeys(bagName);
// by hash
const retval = Citizen.invokeNative('0x78d864c7', bagName, Citizen.returnResultAnyway(), Citizen.resultAsObject2());Function.Call((Hash)0x78d864c7, bagName);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.