SetArray

Last Updated2024-10-31
Created At2024-10-31

Sets an array value in a Map, either inserting a new entry or replacing an old one.

native bool SetArray(const int key, const any[] array, int num_items, bool replace = true)

Parameters

const int key
Key integer.
const any[] array
Array to store.
int num_items
Number of items in the array.
bool replace
If false, operation will fail if the key is already set.

Return Value

bool True on success, false on failure.