Skip to content

Commit

Permalink
fix: use rod item for qbcore adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
pedropapa committed Nov 9, 2024
1 parent 8259dee commit 5ad5236
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions brz-core/client/adapters/inventory.adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ export const qbCoreAdapter = {
exports["qb-core"].GetCoreObject?.().Functions.Notify(message, type);
},
useItemHookName: "inventory:client:ItemBox",
useItemHookHandler: (itemData: any, type: "use" | string) => ({
itemName: itemData.name,
itemType: type,
}),
useItemHookHandler: (params: [any, "use" | string]) => {
const [itemData, type] = params;

return {
itemName: itemData.name,
itemType: type,
};
},
};

0 comments on commit 5ad5236

Please sign in to comment.