refactor(interface/progress): allow rotation order for created props (#564)

This commit is contained in:
xHorntail authored and GitHub committed 2024-05-08 04:28:10 +10:00
1 parent a3952a0d3b
commit 9649ffaf67
1 file changed
+2 -1
+2 -1
View File
@@ -9,6 +9,7 @@ local createdProps = {}
---@field bone? number
---@field pos vector3
---@field rot vector3
---@field rotOrder? number
---@class ProgressProps
---@field label? string
@@ -29,7 +30,7 @@ local function createProp(ped, prop)
local coords = GetEntityCoords(ped)
local object = CreateObject(prop.model, coords.x, coords.y, coords.z, false, false, false)
AttachEntityToEntity(object, ped, GetPedBoneIndex(ped, prop.bone or 60309), prop.pos.x, prop.pos.y, prop.pos.z, prop.rot.x, prop.rot.y, prop.rot.z, true, true, false, true, 0, true)
AttachEntityToEntity(object, ped, GetPedBoneIndex(ped, prop.bone or 60309), prop.pos.x, prop.pos.y, prop.pos.z, prop.rot.x, prop.rot.y, prop.rot.z, true, true, false, true, prop.rotOrder or 0, true)
SetModelAsNoLongerNeeded(prop.model)
return object