From 9649ffaf6799697ba44eb8d83fbeae7d1910aef2 Mon Sep 17 00:00:00 2001 From: xHorntail Date: Tue, 7 May 2024 12:28:10 -0600 Subject: [PATCH] refactor(interface/progress): allow rotation order for created props (#564) --- resource/interface/client/progress.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resource/interface/client/progress.lua b/resource/interface/client/progress.lua index e873d7d..277a8f8 100644 --- a/resource/interface/client/progress.lua +++ b/resource/interface/client/progress.lua @@ -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