Difference between revisions of "ScriptHook.EntityHasComponent"

From Nomad DB
(Created page with "Checks if the given Entity has a Entity Component. {{Warning|The component name is case-sensitive!}} If you need to get a list of components to a giv...")
 
(No difference)

Latest revision as of 12:25, 2 August 2020

Checks if the given Entity has a Entity Component.

The component name is case-sensitive!

If you need to get a list of components to a given Entity, use ScriptHook.GetEntityComponents.

Syntax

ScriptHook.EntityHasComponent(name)
  • name: Name of the component (string)
  • Returns: boolean (has component)

Related Pages