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:
Taso committed 2021-04-13 22:07:22 -04:00
1 parent 8ce6ec7559
commit dd3eac4a0e
18 files changed
+66 -89

No files matched your search

+2 -2
View File
@@ -1,8 +1,8 @@
import ClientUtils from './cl_utils';
import { IServerConfig } from '../../typings/config';
import { ResourceConfig } from '../../typings/config';
// Setup and export the config for the resource
export const config: IServerConfig = JSON.parse(
export const config: ResourceConfig = JSON.parse(
LoadResourceFile(GetCurrentResourceName(), 'config.json'),
);
+2 -2
View File
@@ -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'),
);