Open lionkor opened 8 months ago
New Lua API features:
MP.Get(category, key) -> string|number|table
MP.Set(category, key, value)
MP.Set(enum)
Set settings should not be persisted, that is a different problem to tackle.
The following should work, for example:
MP.Set("General", "Name", "Hello, World!") local name = MP.Get("General", "Name")
and name, of course, is "Hello, World!".
name
MP.Set
I think the described behavior is not achievable with current primitives in the server. Extensive filtering of categories like this sounds like a perfect use case for a database imo.
New Lua API features:
MP.Get(category, key) -> string|number|table
MP.Set(category, key, value)
as an overload to existingMP.Set(enum)
Set settings should not be persisted, that is a different problem to tackle.
The following should work, for example:
and
name
, of course, is "Hello, World!".Acceptance Criteria
MP.Set