@armoury/fivem-framework-common 1.0.49 → 1.0.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,6 +48,8 @@ var EVENT_DIRECTIONS;
48
48
  })(EVENT_DIRECTIONS || (exports.EVENT_DIRECTIONS = EVENT_DIRECTIONS = {}));
49
49
  // TODO: Refactor this, so resources can add to it
50
50
  exports.DEFAULT_EVENTS = {
51
+ /** Language */
52
+ onLanguageChangedUnsafe: 'armoury:unsafe:language:change:done',
51
53
  /** Blips */
52
54
  onBlipCreate: 'armoury:safe:blip:created',
53
55
  onBlipCreateUnsafe: 'armoury:unsafe:blip:created',
@@ -55,9 +57,11 @@ exports.DEFAULT_EVENTS = {
55
57
  onPlayerSessionCreated: 'armoury:session-created',
56
58
  onPlayerSessionUpdated: 'armoury:session-updated',
57
59
  onPlayerSessionDestroyed: 'armoury:session-destroyed',
58
- /** Accounts */
60
+ /** Accounts (TODO: Move into armoury roleplay gamemode) */
59
61
  onAccountCreated: 'armoury:account-created',
60
62
  onAccountAuthenticated: 'armoury:account-authenticated',
63
+ /** Characters (TODO: Move into armoury roleplay gamemode) */
64
+ onPlayerLoggedIntoCharacter: 'armoury:character-logged-into',
61
65
  /** Connection */
62
66
  onPlayerConnect: 'playerJoining',
63
67
  onPlayerDisconnect: 'playerDropped',
@@ -43,6 +43,8 @@ export var EVENT_DIRECTIONS;
43
43
  })(EVENT_DIRECTIONS || (EVENT_DIRECTIONS = {}));
44
44
  // TODO: Refactor this, so resources can add to it
45
45
  export const DEFAULT_EVENTS = {
46
+ /** Language */
47
+ onLanguageChangedUnsafe: 'armoury:unsafe:language:change:done',
46
48
  /** Blips */
47
49
  onBlipCreate: 'armoury:safe:blip:created',
48
50
  onBlipCreateUnsafe: 'armoury:unsafe:blip:created',
@@ -50,9 +52,11 @@ export const DEFAULT_EVENTS = {
50
52
  onPlayerSessionCreated: 'armoury:session-created',
51
53
  onPlayerSessionUpdated: 'armoury:session-updated',
52
54
  onPlayerSessionDestroyed: 'armoury:session-destroyed',
53
- /** Accounts */
55
+ /** Accounts (TODO: Move into armoury roleplay gamemode) */
54
56
  onAccountCreated: 'armoury:account-created',
55
57
  onAccountAuthenticated: 'armoury:account-authenticated',
58
+ /** Characters (TODO: Move into armoury roleplay gamemode) */
59
+ onPlayerLoggedIntoCharacter: 'armoury:character-logged-into',
56
60
  /** Connection */
57
61
  onPlayerConnect: 'playerJoining',
58
62
  onPlayerDisconnect: 'playerDropped',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@armoury/fivem-framework-common",
3
- "version": "1.0.49",
3
+ "version": "1.0.53",
4
4
  "description": "Shared APIs for the Armoury FiveM framework",
5
5
  "main": "dist/cjs/common/index.js",
6
6
  "module": "dist/esm/common/index.js",