mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
feat(resources/marketplace): more cleanup
This commit is contained in:
1 parent
9f5d5e50a8
commit
bf06c1ed3f
3 files changed
+18
-16
No files matched your search
@@ -15,20 +15,21 @@ onNet(events.SELLOUT_SEND_LISTING, (listing: MarketplaceListing) => {
|
||||
RegisterNuiCallbackType(events.SELLOUT_ADD_LISTING);
|
||||
on(`__cfx_nui:${events.SELLOUT_ADD_LISTING}`, (data: MarketplaceListing) => {
|
||||
emitNet(events.SELLOUT_ADD_LISTING, data);
|
||||
|
||||
setTimeout(() => {
|
||||
emitNet(events.SELLOUT_FETCH_LISTING);
|
||||
console.log('Fetched');
|
||||
}, 500);
|
||||
});
|
||||
|
||||
// this will be triggerd when
|
||||
// the adding of a new listing is successfully
|
||||
|
||||
onNet(events.SELLOUT_ADD_LISTING_SUCCESS, () => {
|
||||
emitNet(events.SELLOUT_FETCH_LISTING);
|
||||
});
|
||||
|
||||
onNet(events.SELLOUT_ACTION_RESULT, (alert: IAlertProps) => {
|
||||
SendNuiMessage(
|
||||
JSON.stringify({
|
||||
app: "SELLOUT",
|
||||
method: "setAlert",
|
||||
data: alert
|
||||
app: 'SELLOUT',
|
||||
method: 'setAlert',
|
||||
data: alert,
|
||||
})
|
||||
)
|
||||
})
|
||||
);
|
||||
});
|
||||
Reference in new issue
Block a user