rebel1324 / NutScript

A free role-play framework for Garry's Mod.
http://nutscript.net
MIT License
66 stars 32 forks source link

1.1-Beta Text Color Issue #334

Closed ts-co closed 3 years ago

ts-co commented 4 years ago

It seems that config colors are not coming in as actual Colors and instead are showing up in-game as their printed table id. My hotfix was to do

Color(nut.config.get("color").r, nut.config.get("color").g, nut.config.get("color").b)

But there's probably a cleaner way of fixing this.

zoephix commented 4 years ago

It's probably because you're doing a color inside of a color right now, nut.config.get("color") is already defined as a color by default.

ts-co commented 3 years ago

What I did is a working hotfix. nut.config.get("color") which is default NutScript is being read as a table instead of a color for some reason and is outputting its table id.

TovarischPootis commented 3 years ago

This issue has been fixed