ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. isPedHeadless

Function

isPedHeadless

ServerPedsIdentical to MTA:SA

Returns the value set with setPedHeadless. false by default.

Syntax

bool isPedHeadless(ped ped)

Arguments

pedped
A player or an NPC.

Returns

true when a script marked the ped as headless.

Example

outputServerLog(tostring(isPedHeadless(ped)))

See also