Skip to content

Commit

Permalink
feat(menu): statebags
Browse files Browse the repository at this point in the history
  • Loading branch information
darealsenor committed Sep 5, 2024
1 parent 758f25f commit b584295
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/client/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ export async function openMenu(zone: TAppearanceZone | TAppearanceZone['type'],
return;
}

LocalPlayer.state.appearance = true

let pedHandle = PlayerPedId()
const configMenus = config.menus()
const isString = typeof zone === 'string'
Expand Down Expand Up @@ -156,4 +158,6 @@ export function closeMenu() {
resolvePromise();
}
open = false

LocalPlayer.state.appearance = false
}

0 comments on commit b584295

Please sign in to comment.