Skip to content

Commit 523f717

Browse files
Update README.md
1 parent 12f7c5f commit 523f717

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,9 @@ AltNetworking.Configure(options =>
403403
{
404404
options.Port = 46429;
405405
});
406-
AltNetworking.CreateEntity(new Position {X = 0, Y = 0, Z = 73}, 1, 50, new Dictionary<string, object>());
406+
var data = new Dictionary<string, object>(); // This is the entity data, the streamer on clientside will receive it with entity.data
407+
data["model"] = "a_c_deer";
408+
AltNetworking.CreateEntity(new Position {X = 0, Y = 0, Z = 73}, 1, 50, data);
407409
```
408410
Add the networking-entity as a dependency to your client resource.
409411
```

0 commit comments

Comments
 (0)