Vehicle Body
self:get_net_id
SharedRetrieves the network id of the vehicle body
Syntax
local result = self:get_net_id()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
int | bool | result | Network id of the instance, false if the instance is not replicated |
Examples
local entity = physics.vehicle.create()
core.engine.print("info", "Net ID:", entity:get_net_id())