mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
Make use of library instead of having code duplicated (#201)
* Use fivem-nui-react-lib
This commit is contained in:
1 parent
0cf5bc2bc7
commit
8e79eb1345
60 files changed
+231
-347
No files matched your search
@@ -1,9 +1,10 @@
|
||||
import { useEffect } from 'react';
|
||||
import Nui from '../../nui-events/utils/Nui';
|
||||
import { useNuiRequest } from 'fivem-nui-react-lib';
|
||||
|
||||
export const AppWithStartup = ({ children, id }) => {
|
||||
const Nui = useNuiRequest();
|
||||
useEffect(() => {
|
||||
Nui.send(`npwd:app:${id}`);
|
||||
}, [id]);
|
||||
}, [Nui, id]);
|
||||
return children;
|
||||
};
|
||||
Reference in new issue
Block a user