{"hash":"0x526FEE31","ns":"CFX","name":"NETWORK_GET_ENTITY_OWNER","slug":"NETWORK_GET_ENTITY_OWNER","official":true,"named":true,"luaName":"NetworkGetEntityOwner","game":"cfx","apiset":"shared","returnType":"int","params":[{"name":"entity","type":"Entity","description":"The entity to get the owner for."}],"returnsDescription":"On the server, the server ID of the entity owner. On the client, returns the player/slot ID of the entity owner.","summary":"Returns the owner ID of the specified entity.","descriptions":[{"source":"cfx","format":"md","body":"Returns the owner ID of the specified entity."}],"examples":[],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/NETWORK_GET_ENTITY_OWNER","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/NETWORK_GET_ENTITY_OWNER.md","snippets":{"lua":"local retval = NetworkGetEntityOwner(entity)","luaInvoke":"local retval = Citizen.InvokeNative(0x526fee31, entity, Citizen.ResultAsInteger())","js":"const retval = NetworkGetEntityOwner(entity);","jsInvoke":"const retval = Citizen.invokeNative('0x526fee31', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x526fee31, entity);","notes":[]}}