Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sirenEdit doesn't work properly #509

Open
Fernando-A-Rocha opened this issue Jul 3, 2024 · 2 comments
Open

sirenEdit doesn't work properly #509

Fernando-A-Rocha opened this issue Jul 3, 2024 · 2 comments

Comments

@Fernando-A-Rocha
Copy link
Contributor

Which resource(s) have this problem?
sirenEdit

Describe the bug
It's missing the cpicker resource and doing /sirens in certains vehicles will cause an error in the initUI function in script.lua.

To Reproduce
start sirenEdit
enter a Police LV car
use /sirens => error occurs
click Colour button => error occurs

Expected behavior
no errors (robust script to handle all cases), and a working color picker

Screenshots
image

Version
Multi Theft Auto v1.6-release-22596
Latest MTA default resources as of posting this

@T-MaxWiese-T
Copy link
Contributor

T-MaxWiese-T commented Jul 3, 2024

Regarding the resource "cpicker". You can find it here: https://community.multitheftauto.com/index.php?p=resources&s=details&id=3247 . However, I do not know what the copyright situation is as to whether the resource may be added to the mtasa-resources repository.
An alternative would perhaps be to use the colorpicker in the "freeroam" resource as a template or to outsource the colorpicker to a separate resource so that all resources can access it via functions as with the "cpicker" resource.

@T-MaxWiese-T
Copy link
Contributor

I think the reason why an error was displayed is because you did not select a siren type. But the resource is not very user friendly and errors should be displayed in the GUI or in the chat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants