From 4bf4806b9efaa85741bf6432cf1ec92aba39d1a3 Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Wed, 7 May 2025 12:54:23 +0100 Subject: [PATCH] workaround for a prop claiming it couldn't find W this is just a quick workaround, if a prop is created without a heading, it auto sets it to 0 --- shared/make/makeProp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/make/makeProp.lua b/shared/make/makeProp.lua index e95c304..6fe6b4f 100644 --- a/shared/make/makeProp.lua +++ b/shared/make/makeProp.lua @@ -23,7 +23,7 @@ local Props = {} function makeProp(data, freeze, synced) loadModel(data.prop) local prop = CreateObject(data.prop, data.coords.x, data.coords.y, data.coords.z-1.03, synced and synced or false, synced and synced or false, false) - SetEntityHeading(prop, data.coords.w + 180.0) + SetEntityHeading(prop, (data.coords.w or 0) + 180.0) FreezeEntityPosition(prop, freeze or false) debugPrint("^6Bridge^7: ^1Prop ^2Created^7: '^6"..prop.."^7' | ^2Hash^7: ^7'^6"..data.prop.."^7' | ^2Coord^7: "..formatCoord(data.coords))