From b30e72bdcc54e1ed76ee39c63c7a7d52b391036d Mon Sep 17 00:00:00 2001 From: ElPumpo Date: Sat, 4 Jan 2020 10:55:10 +0100 Subject: [PATCH] Fixed /givecommandcomponent command, closes #422 --- server/commands.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/commands.lua b/server/commands.lua index 3c525759..fc672392 100644 --- a/server/commands.lua +++ b/server/commands.lua @@ -153,6 +153,8 @@ TriggerEvent('es:addGroupCommand', 'giveweaponcomponent', 'admin', function(sour local weapon = args[2] or 'unknown' if ESX.GetWeapon(weapon) then + weapon = string.upper(weapon) + if xPlayer.hasWeapon(weapon) then local component = ESX.GetWeaponComponent(weapon, args[3] or 'unknown')