From 49894e38bff07b2f8e657d679f1276c29663b0f1 Mon Sep 17 00:00:00 2001 From: mrreus <73140302+mrreus@users.noreply.github.com> Date: Sat, 2 Dec 2023 13:26:40 +0100 Subject: [PATCH] Retrieve player objects material colors in a ARGB format --- Server/Components/Pawn/Scripting/Object/PlayerNatives.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Server/Components/Pawn/Scripting/Object/PlayerNatives.cpp b/Server/Components/Pawn/Scripting/Object/PlayerNatives.cpp index ffc32654e..f7ac22a12 100644 --- a/Server/Components/Pawn/Scripting/Object/PlayerNatives.cpp +++ b/Server/Components/Pawn/Scripting/Object/PlayerNatives.cpp @@ -243,7 +243,7 @@ SCRIPT_API(GetPlayerObjectMaterial, bool(IPlayer& player, IPlayerObject& object, { textureLibrary = data->textOrTXD; textureName = data->fontOrTexture; - materialColour = data->materialColour.RGBA(); + materialColour = data->materialColour.ARGB(); } return result; } @@ -259,8 +259,8 @@ SCRIPT_API(GetPlayerObjectMaterialText, bool(IPlayer& player, IPlayerObject& obj fontFace = data->fontOrTexture; fontSize = data->fontSize; bold = data->bold; - fontColour = data->fontColour.RGBA(); - backgroundColour = data->backgroundColour.RGBA(); + fontColour = data->fontColour.ARGB(); + backgroundColour = data->backgroundColour.ARGB(); textAlignment = data->alignment; } return result;