DoesEntityExistForPlayer

From GTA Network Wiki
Jump to: navigation, search

DoesEntityExistForPlayer
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

Checks if an entity exists for the given player.


icon-warning.png WARNING: This function is synchronous and could take a long time to return. Do not use this if your resource is not multithreaded.

If you know what you're doing and want to use this function anyway, consider reading Meta.xml for more information about multithreaded resources.


Syntax

bool NAPI.Entity.DoesEntityExistForPlayer(Client player, NetHandle entity);

Required Arguments

  • player: parameter input should be in Client type.
  • entity: parameter input should be in NetHandle type.

NOTE: This function returns data in bool type.

Usage example(s)

Example Description

NAPI.Entity.DoesEntityExistForPlayer(Client player, NetHandle entity);

Changelog

Version Description
1.0 Release.

References