NETWORK_GET_FIRST_ENTITY_OWNER
Returns the first owner ID of the specified entity.
Signature
int NETWORK_GET_FIRST_ENTITY_OWNER(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | The entity to get the first owner for. |
Returns int — The server ID of the first entity owner.
Description
Returns the first owner ID of the specified entity.
Usage
local retval = NetworkGetFirstEntityOwner(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0x1e546224, entity, Citizen.ResultAsInteger())JavaScript and C#
const retval = NetworkGetFirstEntityOwner(entity);
// by hash
const retval = Citizen.invokeNative('0x1e546224', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x1e546224, entity);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.