From e5301da6ab810128e4021b5b266ebd4796f87ce3 Mon Sep 17 00:00:00 2001 From: Christian J Bennett Date: Sat, 22 Feb 2025 14:27:04 -0600 Subject: [PATCH] update heading in rotation for heading or 0 --- lib/shared/rebound_entities.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/shared/rebound_entities.lua b/lib/shared/rebound_entities.lua index 021aaf1..c1f3c26 100644 --- a/lib/shared/rebound_entities.lua +++ b/lib/shared/rebound_entities.lua @@ -90,7 +90,7 @@ if not isServer then goto client end function ReboundEntities.Create(entityData, src) local entity = ReboundEntities.Register(entityData) assert(entity and entity.position, "Invalid entity data") - entity.rotation = entity.rotation or vector3(0, 0, 0) + entity.rotation = entity.rotation or vector3(0, 0, entityData.heading or 0) TriggerClientEvent(GetCurrentResourceName() .. ":client:CreateReboundEntity", src or -1, entity) return entity end