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

Function

setPedHeadless

ServerPedsIdentical to MTA:SA

Stores whether a ped should be headless (like after a sniper shot in GTA). In Trilogy Hub this is state for scripts returned by isPedHeadless; the game does not remove the head from the ped model yet.

Syntax

bool setPedHeadless(ped ped, bool value)

Arguments

pedped
A player or an NPC.
valuebool
true = headless.

Returns

true on success.

Example

setPedHeadless(ped, true)

Notes

State for scripts. The ped's appearance does not change.

See also