condense target
This commit is contained in:
1 parent
83f2749101
commit
24877e6447
1 file changed
+4
-16
+4
-16
@@ -12,23 +12,11 @@ RegisterNetEvent("md-drugs:client:setpress", function(type)
|
|||||||
PlaceObjectOnGroundProperly(press)
|
PlaceObjectOnGroundProperly(press)
|
||||||
SetEntityHeading(press, head)
|
SetEntityHeading(press, head)
|
||||||
local options = {
|
local options = {
|
||||||
{
|
{ icon = "fas fa-eye", label = Lang.targets.xtc.make, distance = 2.0, action = function() TriggerEvent("md-drugs:client:XTCMenu", type) end,
|
||||||
icon = "fas fa-eye",
|
canInteract = function() if xtcpress then return true end end
|
||||||
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.pick, action = function() TriggerEvent("md-drugs:client:GetPressBack", type, press) end, distance = 2.0,
|
||||||
icon = "fas fa-eye",
|
canInteract = function() if xtcpress then return true end end
|
||||||
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
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
AddMultiModel(press, options, nil)
|
AddMultiModel(press, options, nil)
|
||||||
|
|||||||
Reference in new issue
Block a user