From ed6d458a5419eb584acedd5b4ea40b7a72078585 Mon Sep 17 00:00:00 2001 From: stuyk Date: Thu, 11 Jul 2024 11:32:31 -0600 Subject: [PATCH] fix: destroy local objects --- src/main/server/controllers/object.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/server/controllers/object.ts b/src/main/server/controllers/object.ts index c43149432..26ab70405 100644 --- a/src/main/server/controllers/object.ts +++ b/src/main/server/controllers/object.ts @@ -99,7 +99,7 @@ export function useObjectLocal(player: alt.Player, objectData: iObject) { } function destroy() { - player.emit(Events.controllers.textlabel.destroy, objectData.uid); + player.emit(Events.controllers.object.destroy, objectData.uid); } function update(newObjectData: Partial) {