From 24877e6447373be25cae0edfa0421c6d6e8ff741 Mon Sep 17 00:00:00 2001 From: Mustache Dom <123716453+Mustachedom@users.noreply.github.com> Date: Fri, 25 Oct 2024 02:00:55 -0700 Subject: [PATCH] condense target --- client/xtc.lua | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/client/xtc.lua b/client/xtc.lua index 393a2fe..d39e192 100644 --- a/client/xtc.lua +++ b/client/xtc.lua @@ -12,23 +12,11 @@ RegisterNetEvent("md-drugs:client:setpress", function(type) PlaceObjectOnGroundProperly(press) SetEntityHeading(press, head) local options = { - { - icon = "fas fa-eye", - label = Lang.targets.xtc.make, - distance = 2.0, - action = function() TriggerEvent("md-drugs:client:XTCMenu", type) end, - onSelect = function()TriggerEvent("md-drugs:client:XTCMenu", type)end, - canInteract = function() - if xtcpress then return true end end + { icon = "fas fa-eye", label = Lang.targets.xtc.make, distance = 2.0, action = function() TriggerEvent("md-drugs:client:XTCMenu", type) end, + canInteract = function() if xtcpress then return true end end }, - { - icon = "fas fa-eye", - label = Lang.targets.xtc.pick, - action = function() TriggerEvent("md-drugs:client:GetPressBack", type, press) end, - onSelect = function() TriggerEvent("md-drugs:client:GetPressBack", type, press) end, - distance = 2.0, - canInteract = function() - if xtcpress then return true end end + {icon = "fas fa-eye", label = Lang.targets.xtc.pick, action = function() TriggerEvent("md-drugs:client:GetPressBack", type, press) end, distance = 2.0, + canInteract = function() if xtcpress then return true end end }, } AddMultiModel(press, options, nil)