Enables emulation of clientside connectionComplete event in dev mode.
Enables emulation of clientside disconnect event in dev mode.
true
by default if dev
enabled.
If set to false disables every dev option, such as hotReload or topLevelExceptionHandling
true
by default.
Enables enhanced version of restartCommand option, that works even when script resource is stopped (when resource is stopped this command only works on serverside).
The command name is "res" if true
specified, otherwise your passed value.
Enables resource restart at source code rebuild.
true
by default if dev
enabled.
TCP host that will be used for hot reload server (communication between altv server and esbuild plugin).
Defined automatically by nodejs by default.
TCP port that will be used for hot reload server (communication between altv server and esbuild plugin).
8877
by default.
Enables moving import of the modules included in esbuild option external
(as well as nodejs built-in modules) to the top of the bundle.
Equals topLevelExceptionHandling
by default.
Enables players reconnect emulation (clearing some player stuff on resourceStop and emitting playerConnect).
true
by default if dev
enabled.
Milliseconds delay before connecting players for playersReconnect
(this value is ignored if playersReconnect
is disabled).
200
by default if dev
enabled..
Should the player position be reset when emulating a reconnect?
Equals playersReconnect
by default.
Enables command for restarting resource (destroying everything, reconnecting client, etc.).
The command name is "res" if true
specified, otherwise your passed value.
true
by default if dev
enabled.
Enables emulation of serverside serverStarted event in dev mode.
true
by default if dev
enabled.
Enables handling of top level exceptions.
true
by default if dev
enabled..
Generated using TypeDoc
Experimental feature.
Ensures client and server code versions are same between hot reloads. Affects
playerConnect
event emit (playersReconnect).false
by default.