Skip to content

Commit 0d477a2

Browse files
committed
Fix
[/] Correct armour colors will now display
1 parent 5f2f3af commit 0d477a2

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

client/client.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ CreateThread(function()
3535
while Config.ForceComponent do
3636
if HasArmour and DisplayArmour then
3737
if GetPedDrawableVariation(cache.ped, 9) ~= Component.drawable or GetPedTextureVariation(cache.ped, 9) ~= Component.texture then
38-
SetPedComponentVariation(cache.ped, 9, Component.drawable, Component.texture, 0)
38+
SetPedComponentVariation(cache.ped, 9, Component.drawable, Component.texture, 2)
3939
end
4040
end
4141

fxmanifest.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use_experimental_fxv2_oal 'yes'
55

66
author 'zRxnx'
77
description 'Advanced armour system'
8-
version '2.3.1'
8+
version '2.3.2'
99

1010
dependencies {
1111
'zrx_utility',

server/functions.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ Player = {
2626
return
2727
end
2828

29+
data.drawable = tonumber(data.drawable)
30+
data.texture = tonumber(data.texture)
31+
2932
PLAYER_CACHE[xPlayer.player].vData.drawable = data.drawable
3033
PLAYER_CACHE[xPlayer.player].vData.texture = data.texture
3134

0 commit comments

Comments
 (0)