Skip to content

Commit

Permalink
fix: destroy local objects
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuyk committed Jul 11, 2024
1 parent a977262 commit ed6d458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/server/controllers/object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<iObject>) {
Expand Down

0 comments on commit ed6d458

Please sign in to comment.