Skip to content

Commit bd6c295

Browse files
committed
tweak: use proper native instead of undocumented one
1 parent d6a3af0 commit bd6c295

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/NativeCodeGen.TypeScript/TypeScriptEmitter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ public void EmitClassEnd(CodeBuilder cb, string className, ClassKind kind)
246246
cb.AppendLine(" */");
247247
cb.AppendLine("get NetworkId(): number {");
248248
cb.Indent();
249-
// NETWORK_GET_NETWORK_ID_FROM_ENTITY = 0xF260AF6F43953316 (same as PED_TO_NET, VEH_TO_NET, OBJ_TO_NET)
250-
cb.AppendLine("return inv<number>('0xF260AF6F43953316', this.handle, rai());");
249+
// NETWORK_GET_NETWORK_ID_FROM_ENTITY = 0xA11700682F3AD45C
250+
cb.AppendLine("return inv<number>('0xA11700682F3AD45C', this.handle, rai());");
251251
cb.Dedent();
252252
cb.AppendLine("}");
253253
}

0 commit comments

Comments
 (0)