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:
Name | Type | Description |
---|---|---|
key | string | The name of the property. |
Returns:
type | Description |
---|---|
any | The value of the property |
Usage
---@type MLPlayer
local mlplayer;
---@type string
local key;
local val0 = mlplayer.GetProperty(key)