rebel1324 / NutScript

A free role-play framework for Garry's Mod.

Home Page:http://nutscript.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

1.1-Beta Text Color Issue

ts-co opened this issue · comments

commented

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.

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.

commented

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.

This issue has been fixed