multitheftauto / mtasa-blue

Multi Theft Auto is a game engine that incorporates an extendable network play element into a proprietary commercial single-player game.
https://multitheftauto.com
GNU General Public License v3.0
1.41k stars 438 forks source link

function `tocolor` server side #291

Closed CrosRoad95 closed 6 years ago

CrosRoad95 commented 6 years ago

There's nothing to describe, just make tocolor possible to use serverside.

Example if you making group system with tag/group color, you have to rewrite tocolor function serverside or store color as table { r, g, b[, a] }

qaisjp commented 6 years ago

This sounds fine. If you're interested in sending a pull request for this, it would be useful to move the code here: https://github.com/multitheftauto/mtasa-blue/blob/master/Shared/mods/deathmatch/logic/luadefs/CLuaUtilDefs.cpp