SetTrieValue Function

Sets a value in a hash map, either inserting a new entry or replacing an old one.

bool SetTrieValue(Handle map, const char[] key, any value, bool replace)


Handle map

Map Handle.

const char[] key

Key string.

any value

Value to store at this key.

bool replace

If false, operation will fail if the key is already set.

Return Value

True on success, false on failure.


Invalid Handle.