mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 22:16:54 +00:00
tweak(config): Config var & send as event method
config -> ResourceConfig for readability and the resource config in NUI is now being referenced consistently from state so it can be referenced at runtime and not compile time. Also removes the need to copy the config before using `cp`
This commit is contained in:
1 parent
8ce6ec7559
commit
dd3eac4a0e
18 files changed
+66
-89
No files matched your search
@@ -1,8 +1,8 @@
|
||||
import { Server } from 'esx.js';
|
||||
import { IServerConfig } from '../../typings/config';
|
||||
import { ResourceConfig } from '../../typings/config';
|
||||
|
||||
// Setup and export config loaded at runtime
|
||||
export const config: IServerConfig = JSON.parse(
|
||||
export const config: ResourceConfig = JSON.parse(
|
||||
LoadResourceFile(GetCurrentResourceName(), 'config.json'),
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user