Adding a light to an entity?

Hi,

How to add Light component to entity? I have tried the sample script from Unity docs but it (surprise surprise) doesn't work.
Here's what I've tried:

 Light lightComp = myEntity.gameObject.AddComponent<Light>();
            lightComp.color = Color.blue;
            lightComp.transform.localPosition = new Vector3(0, 5, 0);
I think that's only getting created on the server, not the clients. You might have to spawn an existing prefab.
Ok thanks!
There is no resource streaming in Rust (sadly), so the anwer above is correct - the only way is to spawn prefab
If you need custom prefabs made for maps i can do that.
I run custom maps every month and make custom prefabs.

Pm me if interested, however keep in mind a custom map is not cheap/free or fast