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

Function

getPedTargetStart

ServerPedsIdentical to MTA:SA

Returns the point where a ped's line of fire starts, i.e. the approximate muzzle position (same as getPedWeaponMuzzlePosition). Together with getPedTargetEnd it defines the bullet path.

Syntax

float, float, float getPedTargetStart(ped ped)

Arguments

pedped
A player or an NPC.

Returns

x, y, z, or false.

Example

local sx, sy, sz = getPedTargetStart(player)

See also