ScriptHook.EntityHasComponent

From Nomad DB

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