mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 17:28:53 +00:00
Fixed /givecommandcomponent command, closes #422
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user