Skip to content

Commit

Permalink
misc update
Browse files Browse the repository at this point in the history
  • Loading branch information
SOH69 committed Aug 12, 2024
1 parent 8dd0d2b commit 127a2b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/client/init.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TAppearance, TAppearanceZone } from "@typings/appearance"
import { TAppearance, TAppearanceZone, TMenuTypes } from "@typings/appearance"
import { openMenu } from "./menu"
import { setPlayerPedAppearance } from "./appearance/setters"
import { triggerServerCallback, getFrameworkID, Delay, bl_bridge, ped, delay, format, updatePed } from "@utils"
Expand Down Expand Up @@ -36,6 +36,10 @@ on('bl_appearance:client:useZone', (zone: TAppearanceZone) => {
openMenu(zone)
})

onNet('bl_appearance:client:open', (zone: TMenuTypes) => {
openMenu(zone)
})

onNet('bl_bridge:client:playerLoaded', async () => {
while (!bl_bridge.core().playerLoaded()) {
await Delay(100);
Expand Down
2 changes: 1 addition & 1 deletion src/server/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ RegisterCommand('migrate', async (source: number) => {
const config = bl_appearance.config();
const importedModule = await import(`./migrate/${config.previousClothing === 'fivem-appearance' ? 'fivem' : config.previousClothing}.ts`)
importedModule.default(source)
}, false);
}, false);

0 comments on commit 127a2b0

Please sign in to comment.