Skip to content

Commit 12f7c5f

Browse files
Update README.md
1 parent e9488cf commit 12f7c5f

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,13 @@ AltColShape.OnEntityEnterColShape = (entity, shape) => {
396396
https://github.com/FabianTerhorst/coreclr-module/releases/download/cdntest1.12.0-beta/networking-entity.zip
397397
Extract the files from the zip and put them into resources/networking-entity.
398398
Add the https://www.nuget.org/packages/AltV.Net.NetworkingEntity/ dependency to your server.
399+
When running on server don't forget to open the websocket port 46429 or change it to a own port.
400+
You need to call ``AltNetworking.Configure`` even when you don't want to modify the default port.
399401
```csharp
400-
AltNetworking.Init();
402+
AltNetworking.Configure(options =>
403+
{
404+
options.Port = 46429;
405+
});
401406
AltNetworking.CreateEntity(new Position {X = 0, Y = 0, Z = 73}, 1, 50, new Dictionary<string, object>());
402407
```
403408
Add the networking-entity as a dependency to your client resource.
@@ -445,9 +450,3 @@ Now you just need to import the streamer from your client code.
445450
```js
446451
import 'client/my-streamer.js';
447452
```
448-
449-
When running on server don't forget to open the websocket port 46429 or change it to a own port with.
450-
```csharp
451-
AltNetworking.Init(new NetworkingModule(myPort))
452-
```
453-

0 commit comments

Comments
 (0)