mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
fix(client/marketplace): Fixed typo preventing listings from being sent
This commit is contained in:
1 parent
0f61088999
commit
4e7e6b3e92
1 file changed
+3
-4
@@ -2,12 +2,11 @@ import { MarketplaceEvents, MarketplaceListing } from '../../typings/marketplace
|
|||||||
import { IAlertProps } from '../../typings/alerts';
|
import { IAlertProps } from '../../typings/alerts';
|
||||||
import { sendMarketplaceEvent } from '../utils/messages';
|
import { sendMarketplaceEvent } from '../utils/messages';
|
||||||
|
|
||||||
RegisterNuiCallbackType(MarketplaceEvents.ADD_LISTING);
|
onNet(MarketplaceEvents.SEND_LISTING, (listings: MarketplaceListing[]) => {
|
||||||
|
sendMarketplaceEvent('setListings', listings);
|
||||||
onNet(MarketplaceEvents.SEND_LISTING, (listing: MarketplaceListing) => {
|
|
||||||
sendMarketplaceEvent('setListing', listing);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
RegisterNuiCallbackType(MarketplaceEvents.ADD_LISTING);
|
||||||
on(`__cfx_nui:${MarketplaceEvents.ADD_LISTING}`, (data: MarketplaceListing, cb: Function) => {
|
on(`__cfx_nui:${MarketplaceEvents.ADD_LISTING}`, (data: MarketplaceListing, cb: Function) => {
|
||||||
emitNet(MarketplaceEvents.ADD_LISTING, data);
|
emitNet(MarketplaceEvents.ADD_LISTING, data);
|
||||||
cb();
|
cb();
|
||||||
|
|||||||
Reference in new issue
Block a user