multitheftauto/mtasa-blue

get/set() doesn't update settings if resource name has '-'

Opened this issue · 0 comments

Describe the bug

When trying to change a setting of a resource whose name contains a dash (-) doesn’t update the existing setting. Instead, it creates a new one like this resourceName.setting
[edited]: get() has the same bug
returns the value of resourceName.setting instead of setting

Steps to reproduce

  1. Create a resource with a dash in its name, e.g. my-resource
  2. Define a setting in its meta.xml:
<setting name="*testSetting" value="1" />
  1. Run:
set("*my-resource.testSetting", "2")

Version

Client: v1.6-release-23324 (Windows 10 64-bit)
Server: v1.6-release-23324 (Windows 10 64-bit)

Additional context

/

Relevant log output

Security Policy

  • I have read and understood the Security Policy and this issue is not security related.