Skip to main content

MLPlayer.GetProperty(string key)

Returns the value of the custom property. Returns nil in case if the property does not exist or the value is invalid. Use PropertyExists(key) function to check if the property is defined. It might take some time before for newly defined property to propagate between all clients.

Parameters:

NameTypeDescription
keystringThe name of the property.

Returns:

typeDescription
anyThe value of the property

Usage

---@type MLPlayer
local mlplayer;

---@type string
local key;


local val0 = mlplayer.GetProperty(key)