Entity Owner - FPP

Does anyone know an easy way to get the owner of an entity out of FPP?

There isn’t any “easy way” as far as I know. You’ll need to hook PlayerSpawnedProps (and PlayerSpawnedSENT and so on…) so you can take every spawned entity and store the player who spawned it.

Something like this:

[lua]hook.Add(“PlayerSpawnedProp”, “SetPropOwner”, function(pl, model, ent)
ent.OwnerPlayer = pl

FPP already does that, Kilburn.

Oh my bad. I misunderstood that as “without using FPP”. :downs:

Entity.Owner is the owner of an entity in FPP on the serverside, not so sure about the clientside.