mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-02 22:17:39 +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 { sendMarketplaceEvent } from '../utils/messages';
|
||||
|
||||
RegisterNuiCallbackType(MarketplaceEvents.ADD_LISTING);
|
||||
|
||||
onNet(MarketplaceEvents.SEND_LISTING, (listing: MarketplaceListing) => {
|
||||
sendMarketplaceEvent('setListing', listing);
|
||||
onNet(MarketplaceEvents.SEND_LISTING, (listings: MarketplaceListing[]) => {
|
||||
sendMarketplaceEvent('setListings', listings);
|
||||
});
|
||||
|
||||
RegisterNuiCallbackType(MarketplaceEvents.ADD_LISTING);
|
||||
on(`__cfx_nui:${MarketplaceEvents.ADD_LISTING}`, (data: MarketplaceListing, cb: Function) => {
|
||||
emitNet(MarketplaceEvents.ADD_LISTING, data);
|
||||
cb();
|
||||
|
||||
Reference in new issue
Block a user