Skip to content

Api > MLPlayer > PropertyExists()


MLPlayer.PropertyExists(string key)⚓︎

Checks if a custom property is defined. This does not guarantee that the value of the property is valid.

Parameters:⚓︎

Name Type Description
key string the name of the property

Returns:⚓︎

type Description
boolean True if the property is defined.

Usage⚓︎

---@type MLPlayer
local mlplayer;

---@type string
local key;


local val0 = mlplayer.PropertyExists(key)