NETWORK_DOES_ENTITY_EXIST_WITH_NETWORK_ID
Signature
BOOL NETWORK_DOES_ENTITY_EXIST_WITH_NETWORK_ID(int netId);Parameters
| Name | Type | Description |
|---|---|---|
netId | int | The network id to check |
Returns BOOL — Returns `true` if both the network id exist, and the network id has a game object.
Usage
local retval = NetworkDoesEntityExistWithNetworkId(netId)
-- always works, by hash
local retval = Citizen.InvokeNative(0x1e2e3177, netId, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = NetworkDoesEntityExistWithNetworkId(netId);
// by hash
const retval = Citizen.invokeNative('0x1e2e3177', netId, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x1e2e3177, netId);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.