fix placement text position

This commit is contained in:
MrNewb committed 2025-02-15 06:12:14 -05:00
1 parent 99389dcd2d
commit 19a17e33bb
1 file changed
+9 -3
+9 -3
View File
@@ -19,6 +19,14 @@ local function finishPlacing()
activePlacementProp = nil activePlacementProp = nil
end end
--[[
RegisterCommand('testplacement', function()
Placeable.PlaceObject("prop_cs_cardbox_01", 10, true, nil, 0.0)
end, false)
--]]
Placeable.PlaceObject = function(object, distance, snapToGround, allowedMats, offset) Placeable.PlaceObject = function(object, distance, snapToGround, allowedMats, offset)
distance = tonumber(distance or 10.0 ) distance = tonumber(distance or 10.0 )
if activePlacementProp then return end if activePlacementProp then return end
@@ -38,9 +46,7 @@ Placeable.PlaceObject = function(object, distance, snapToGround, allowedMats, of
SetEntityInvincible(activePlacementProp, true) SetEntityInvincible(activePlacementProp, true)
FreezeEntityPosition(activePlacementProp, true) FreezeEntityPosition(activePlacementProp, true)
Bridge.Notify.ShowHelpText(type(placementText) == 'table' and table.concat(placementText) or placementText, { Bridge.Notify.ShowHelpText(type(placementText) == 'table' and table.concat(placementText))
position = "left-center",
})
local outLine = false local outLine = false