From 2cd28db5fa891f361c5af07a491532378a820b83 Mon Sep 17 00:00:00 2001 From: T-MaxWiese-T <65263210+T-MaxWiese-T@users.noreply.github.com> Date: Fri, 10 May 2024 04:58:43 +0200 Subject: [PATCH] playerblips: Fixed that the resource "playercolors" should be activated for teams (#474) The reason for this pull request is because the resource did not work the way I wanted it to. Only after I had a closer look at the code I realized that you can configure the resource in the meta.xml. Because I wanted the playerblips resource to take over the team colors that I have in my code, but that didn't happen. And since the server log said to activate the playercolors resource, I did it, but it didn't help. Only after I deactivated the playercolors resource and set "use_team_colors" to "true" did it work as expected. Anyway, the playercolors resource only makes sense if you want to have random player nametag colors, which makes no sense for a team, since a team can only have one color. --- [gameplay]/playerblips/server/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/[gameplay]/playerblips/server/main.lua b/[gameplay]/playerblips/server/main.lua index a4020d312..416ab62dd 100644 --- a/[gameplay]/playerblips/server/main.lua +++ b/[gameplay]/playerblips/server/main.lua @@ -13,7 +13,7 @@ local function resourceStart() end local playercolorsResource = getResourceFromName("playercolors") - if playercolorsResource and getResourceState(playercolorsResource) ~= "running" then + if playercolorsResource and getResourceState(playercolorsResource) ~= "running" and not useTeams then outputDebugString("playerblips: playercolors resource not running; using blip_color. Restart this resource after starting playercolors.", 4, 255, 125, 0) useNametags = false end