[**SixL client API**](../../../README.md)

***

[SixL client API](../../../README.md) / [game/ped](../README.md) / GamePedMp

# Interface: GamePedMp

The ped functions: state queries, combat and behaviour settings, damage and the spawn-point search.

## Remarks

A ped is given as an entity object or as its handle. A hash argument (a relationship group, an event, a
motion state, a model) is a number, or a name that is hashed to its 32-bit joaat. Getters are asynchronous: they
return a Promise. Angles are in degrees and positions in metres.

## Example

```ts
const dead = await mp.game.ped.isFatallyInjured(ped);
```

## Methods

### applyBloodDamageByZone()

> **applyBloodDamageByZone**(`ped`, `p1`, `p2`, `p3`, `p4`): `void`

Applies blood damage to a ped in one zone of its body.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### p1

`number`

A flag of the game, as a float.

##### p2

`number`

A flag of the game, as a float.

##### p3

`number`

A flag of the game, as a float.

##### p4

`number`

A flag of the game, as a float.

#### Returns

`void`

#### Example

```ts
mp.game.ped.applyBloodDamageByZone(ped, 0, 0, 0, 0);
```

***

### applyDamagePack()

> **applyDamagePack**(`ped`, `damagePack`, `damage`, `mult`): `void`

Applies a damage pack to a ped: a named set of damage effects.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### damagePack

`string` \| `number`

The damage pack's name, or its hash.

##### damage

`number`

The damage amount, as a float.

##### mult

`number`

The multiplier of the damage, as a float.

#### Returns

`void`

#### Example

```ts
mp.game.ped.applyDamagePack(ped, '<damage pack name>', 100, 1.0);
```

***

### canInCombatSeeTarget()

> **canInCombatSeeTarget**(`ped`, `target`): `Promise`\<`boolean`\>

Whether a ped in combat can see its target.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### target

`number` \| \{ `handle`: `number`; \}

The target, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true when the ped sees the target.

#### Example

```ts
const sees = await mp.game.ped.canInCombatSeeTarget(ped, other);
```

***

### clearBloodDamage()

> **clearBloodDamage**(`ped`): `void`

Clears all the blood on a ped.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`void`

#### Example

```ts
mp.game.ped.clearBloodDamage(ped);
```

***

### clearBloodDamageByZone()

> **clearBloodDamageByZone**(`ped`, `p1`): `void`

Clears the blood in one zone of a ped's body.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### p1

`number`

The zone, as an integer.

#### Returns

`void`

#### Example

```ts
mp.game.ped.clearBloodDamageByZone(ped, 0);
```

***

### clearEnvDirt()

> **clearEnvDirt**(`ped`): `void`

Clears the dirt of the environment from a ped's clothes.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`void`

#### Example

```ts
mp.game.ped.clearEnvDirt(ped);
```

***

### clearFacialIdleAnimOverride()

> **clearFacialIdleAnimOverride**(`ped`): `void`

Clears a facial idle animation override, so the ped's face goes back to its default idle.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`void`

#### Example

```ts
mp.game.ped.clearFacialIdleAnimOverride(ped);
```

***

### clearRagdollBlockingFlags()

> **clearRagdollBlockingFlags**(`ped`, `flags`): `void`

Clears the flags that block a ped from ragdolling.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### flags

`string` \| `number`

The flags to clear: a hash or a name, as the game defines them.

#### Returns

`void`

#### Example

```ts
mp.game.ped.clearRagdollBlockingFlags(ped, mp.joaat('<flags name>'));
```

***

### clearWetness()

> **clearWetness**(`ped`): `void`

Dries a ped that is wet (from water or rain).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`void`

#### Example

```ts
mp.game.ped.clearWetness(ped);
```

***

### createGroup()

> **createGroup**(`unused?`): `Promise`\<`number`\>

Creates a group of peds (a leader and the members that follow it).

#### Parameters

##### unused?

`number`

Not used by SixL: accepted for compatibility.

#### Returns

`Promise`\<`number`\>

A Promise of the new group.

#### Remarks

A group is a number this client got from `createGroup` or `getGroupIndex` (0 is no group); a number it never got is refused.

#### Example

```ts
const group = await mp.game.ped.createGroup(0);
```

***

### disableHeatscaleOverride()

> **disableHeatscaleOverride**(`ped`): `void`

Turns off the game's heat-scale override of a ped (the thermal view colouring).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`void`

#### Example

```ts
mp.game.ped.disableHeatscaleOverride(ped);
```

***

### doesGroupExist()

> **doesGroupExist**(`groupId`): `Promise`\<`boolean`\>

Whether a group exists.

#### Parameters

##### groupId

`number`

The group, as `createGroup` or `getGroupIndex` gave it.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the group exists.

#### Remarks

A group is a number this client got from `createGroup` or `getGroupIndex` (0 is no group); a number it never got is refused.

#### Example

```ts
const exists = await mp.game.ped.doesGroupExist(group);
```

***

### dropAmbientProp()

> **dropAmbientProp**(`ped`): `void`

Drops the ambient prop a ped holds (such as a bag or a cup).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`void`

#### Example

```ts
mp.game.ped.dropAmbientProp(ped);
```

***

### forceAiAndAnimationUpdate()

> **forceAiAndAnimationUpdate**(`ped`, `p1`, `p2`): `void`

Forces a ped's AI and animation to update on this frame.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### p1

`boolean`

A flag of the game, a bool.

##### p2

`boolean`

A flag of the game, a bool.

#### Returns

`void`

#### Example

```ts
mp.game.ped.forceAiAndAnimationUpdate(ped, false, false);
```

***

### forceMotionState()

> **forceMotionState**(`ped`, `motionStateHash`, `p2`, `p3`, `p4`): `Promise`\<`boolean`\>

Forces a ped into a motion state (a locomotion state such as idle or walk).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### motionStateHash

`string` \| `number`

The motion state's hash, or its name.

##### p2

`boolean`

A flag of the game, a bool.

##### p3

`number`

A flag of the game, as an integer.

##### p4

`boolean`

A flag of the game, a bool.

#### Returns

`Promise`\<`boolean`\>

A Promise of true when the motion state was set.

#### Example

```ts
const forced = await mp.game.ped.forceMotionState(ped, 'MotionState_Idle', false, 0, false);
```

***

### forceToOpenParachute()

> **forceToOpenParachute**(`ped`): `void`

Makes a ped open its parachute.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`void`

#### Example

```ts
mp.game.ped.forceToOpenParachute(ped);
```

***

### getAccuracy()

> **getAccuracy**(`ped`): `Promise`\<`number`\>

The accuracy of a ped's shots, from 0 (never hits) to 100 (always hits).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`number`\>

A Promise of the accuracy as an integer, the game's own scale.

#### Example

```ts
const accuracy = await mp.game.ped.getAccuracy(ped);
```

***

### getAsGroupLeader()

> **getAsGroupLeader**(`groupID`): `Promise`\<`number`\>

The leader of a group (the short name of `getPedAsGroupLeader`).

#### Parameters

##### groupID

`number`

The group, as `createGroup` or `getGroupIndex` gave it.

#### Returns

`Promise`\<`number`\>

A Promise of the leader's handle; 0 when there is none or it is a ped of the game's own.

#### Remarks

Partial: not yet confirmed in the game. A group number this client never got is refused.

#### Example

```ts
const leader = await mp.game.ped.getAsGroupLeader(group);
```

***

### getAsGroupMember()

> **getAsGroupMember**(`groupID`, `memberNumber`): `Promise`\<`number`\>

A member of a group (the short name of `getPedAsGroupMember`).

#### Parameters

##### groupID

`number`

The group, as `createGroup` or `getGroupIndex` gave it.

##### memberNumber

`number`

Which member.

#### Returns

`Promise`\<`number`\>

A Promise of the ped's handle; 0 when there is none or it is a ped of the game's own.

#### Remarks

Partial: not yet confirmed in the game. A group number this client never got is refused.

#### Example

```ts
const first = await mp.game.ped.getAsGroupMember(group, 0);
```

***

### getBoneCoords()

> **getBoneCoords**(`ped`, `boneId`, `offsetX`, `offsetY`, `offsetZ`): `Promise`\<[`IVector3`](../../../common/interfaces/IVector3.md)\>

The world position of a bone of a ped, with an offset from the bone.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### boneId

`number`

The bone's id.

##### offsetX

`number`

The offset's X component, in metres, from the bone.

##### offsetY

`number`

The offset's Y component, in metres, from the bone.

##### offsetZ

`number`

The offset's Z component, in metres, from the bone.

#### Returns

`Promise`\<[`IVector3`](../../../common/interfaces/IVector3.md)\>

A Promise of the position as `{ x, y, z }` in metres.

#### Example

```ts
const { x, y, z } = await mp.game.ped.getBoneCoords(ped, 31086, 0, 0, 0);
```

***

### getBoneIndex()

> **getBoneIndex**(`ped`, `boneId`): `Promise`\<`number`\>

The index of a bone of a ped's skeleton.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### boneId

`number`

The bone's id.

#### Returns

`Promise`\<`number`\>

A Promise of the bone index as an integer.

#### Example

```ts
const index = await mp.game.ped.getBoneIndex(ped, 31086);
```

***

### getCauseOfDeath()

> **getCauseOfDeath**(`ped`): `Promise`\<`number`\>

The cause of a ped's death, as a hash of the weapon or the damage.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`number`\>

A Promise of the cause as an unsigned integer hash.

#### Example

```ts
const cause = await mp.game.ped.getCauseOfDeath(ped);
```

***

### getCombatFloat()

> **getCombatFloat**(`ped`, `p1`): `Promise`\<`number`\>

A combat float of a ped (a tuning value of its combat behaviour).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### p1

`number`

The combat float's type, as an integer.

#### Returns

`Promise`\<`number`\>

A Promise of the value as a float.

#### Example

```ts
const value = await mp.game.ped.getCombatFloat(ped, 0);
```

***

### getCombatMovement()

> **getCombatMovement**(`ped`): `Promise`\<`number`\>

The combat movement of a ped (how it moves in combat: stays, defends, advances).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`number`\>

A Promise of the movement as an integer, the game's own values.

#### Example

```ts
const movement = await mp.game.ped.getCombatMovement(ped);
```

***

### getCombatRange()

> **getCombatRange**(`ped`): `Promise`\<`number`\>

The combat range of a ped (how far it fights from).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`number`\>

A Promise of the range as an integer, the game's own values.

#### Example

```ts
const range = await mp.game.ped.getCombatRange(ped);
```

***

### getConfigFlag()

> **getConfigFlag**(`ped`, `flagId`, `p2?`): `Promise`\<`boolean`\>

A config flag of a ped (a behaviour switch of the ped).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### flagId

`number`

The flag's id, as an integer.

##### p2?

`boolean`

Not used by SixL: accepted for compatibility.

#### Returns

`Promise`\<`boolean`\>

A Promise of the flag's value.

#### Example

```ts
const flag = await mp.game.ped.getConfigFlag(ped, 32);
```

***

### getDefensiveAreaPosition()

> **getDefensiveAreaPosition**(`ped`, `p1`): `Promise`\<[`IVector3`](../../../common/interfaces/IVector3.md)\>

The centre of a ped's defensive area.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### p1

`boolean`

A flag of the game, set to true for the default reading.

#### Returns

`Promise`\<[`IVector3`](../../../common/interfaces/IVector3.md)\>

A Promise of the centre as `{ x, y, z }` in metres.

#### Example

```ts
const { x, y, z } = await mp.game.ped.getDefensiveAreaPosition(ped, true);
```

***

### getGroupIndex()

> **getGroupIndex**(`ped`): `Promise`\<`number`\>

The group a ped is in.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`number`\>

A Promise of the group, 0 when the ped is in none.

#### Remarks

A group is a number this client got from `createGroup` or `getGroupIndex` (0 is no group); a number it never got is refused.

#### Example

```ts
const group = await mp.game.ped.getGroupIndex(ped);
```

***

### getGroupSize()

> **getGroupSize**(`groupID`): `Promise`\<\{ `sizeInMembers`: `number`; `unknown`: `number`; \}\>

The size of a group.

#### Parameters

##### groupID

`number`

The group, as `createGroup` or `getGroupIndex` gave it.

#### Returns

`Promise`\<\{ `sizeInMembers`: `number`; `unknown`: `number`; \}\>

A Promise of `{ unknown, sizeInMembers }`: `sizeInMembers` the number of members, `unknown` the game's other answer.

#### Remarks

A group is a number this client got from `createGroup` or `getGroupIndex` (0 is no group); a number it never got is refused.

#### Example

```ts
const { sizeInMembers } = await mp.game.ped.getGroupSize(group);
```

***

### getHeadOverlayNum()

> **getHeadOverlayNum**(`overlayID`): `Promise`\<`number`\>

Returns the number of head overlays of a given kind.

#### Parameters

##### overlayID

`number`

The head overlay's id, 0..12.

#### Returns

`Promise`\<`number`\>

A Promise of the number as an integer.

#### Example

```ts
const count = await mp.game.ped.getHeadOverlayNum(0);
```

***

### getLastDamageBone()

> **getLastDamageBone**(`ped`): `Promise`\<`number`\>

The bone a ped was last damaged at.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`number`\>

A promise of the bone, 0 when none is known.

#### Remarks

Partial: not yet confirmed in the game.

#### Example

```ts
const bone = await mp.game.ped.getLastDamageBone(ped);
```

***

### getMaxHealth()

> **getMaxHealth**(`ped`): `Promise`\<`number`\>

The maximum health of a ped.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`number`\>

A Promise of the maximum health as an integer.

#### Example

```ts
const max = await mp.game.ped.getMaxHealth(ped);
```

***

### getMoney()

> **getMoney**(`ped`): `Promise`\<`number`\>

The money a ped carries.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`number`\>

A Promise of the amount as an integer.

#### Example

```ts
const money = await mp.game.ped.getMoney(ped);
```

***

### getNearbyPeds()

> **getNearbyPeds**(`ped`, `ignore`): `Promise`\<\{ `peds`: `number`[]; `result`: `number`; `sizeAndPeds`: `number`; \}\>

The peds near a ped.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### ignore

`number`

A ped type to leave out, VI's value as the game takes it.

#### Returns

`Promise`\<\{ `peds`: `number`[]; `result`: `number`; `sizeAndPeds`: `number`; \}\>

A Promise of `{ sizeAndPeds, result, peds }`: `peds` the handles of the peds this client has (players and
the server's peds; the game's own are left out), in the game's order; `sizeAndPeds` and `result` their number.

#### Remarks

Partial: 19 peds at most, the rest left out without a word. Not yet confirmed in the game.

#### Example

```ts
const { peds } = await mp.game.ped.getNearbyPeds(mp.players.local, -1);
```

***

### getNearbyVehicles()

> **getNearbyVehicles**(`ped`): `Promise`\<\{ `result`: `number`; `sizeAndVehs`: `number`; `vehicles`: `number`[]; \}\>

The vehicles near a ped.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<\{ `result`: `number`; `sizeAndVehs`: `number`; `vehicles`: `number`[]; \}\>

A Promise of `{ sizeAndVehs, result, vehicles }`: `vehicles` the handles of the vehicles this client has (the
server's; the game's own are left out), in the game's order; `sizeAndVehs` and `result` their number.

#### Remarks

Partial: 19 vehicles at most, the rest left out without a word. Not yet confirmed in the game.

#### Example

```ts
const { vehicles } = await mp.game.ped.getNearbyVehicles(mp.players.local);
```

***

### getNumHeadOverlayValues()

> **getNumHeadOverlayValues**(`overlayID`): `Promise`\<`number`\>

Returns the number of values (styles) a head overlay of a given kind has.

#### Parameters

##### overlayID

`number`

The head overlay's id, 0..12.

#### Returns

`Promise`\<`number`\>

A Promise of the number as an integer.

#### Example

```ts
const values = await mp.game.ped.getNumHeadOverlayValues(0);
```

***

### getParachuteState()

> **getParachuteState**(`ped`): `Promise`\<`number`\>

The parachute state of a ped.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`number`\>

A Promise of the state as an integer, the game's own values.

#### Example

```ts
const state = await mp.game.ped.getParachuteState(ped);
```

***

### getPedAsGroupLeader()

> **getPedAsGroupLeader**(`groupID`): `Promise`\<`number`\>

The leader of a group.

#### Parameters

##### groupID

`number`

The group, as `createGroup` or `getGroupIndex` gave it.

#### Returns

`Promise`\<`number`\>

A Promise of the leader's handle; 0 when there is none or it is a ped of the game's own.

#### Remarks

Partial: not yet confirmed in the game. A group number this client never got is refused.

#### Example

```ts
const leader = await mp.game.ped.getPedAsGroupLeader(group);
```

***

### getPedAsGroupMember()

> **getPedAsGroupMember**(`groupID`, `memberNumber`): `Promise`\<`number`\>

A member of a group.

#### Parameters

##### groupID

`number`

The group, as `createGroup` or `getGroupIndex` gave it.

##### memberNumber

`number`

Which member.

#### Returns

`Promise`\<`number`\>

A Promise of the ped's handle; 0 when there is none or it is a ped of the game's own.

#### Remarks

Partial: not yet confirmed in the game. A group number this client never got is refused.

#### Example

```ts
const first = await mp.game.ped.getPedAsGroupMember(group, 0);
```

***

### getRelationshipGroupDefaultHash()

> **getRelationshipGroupDefaultHash**(`ped`): `Promise`\<`number`\>

The default relationship group hash of a ped.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`number`\>

A Promise of the group hash as an unsigned integer.

#### Example

```ts
const group = await mp.game.ped.getRelationshipGroupDefaultHash(ped);
```

***

### getRelationshipGroupHash()

> **getRelationshipGroupHash**(`ped`): `Promise`\<`number`\>

The relationship group hash of a ped.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`number`\>

A Promise of the group hash as an unsigned integer.

#### Example

```ts
const group = await mp.game.ped.getRelationshipGroupHash(ped);
```

***

### getSeatIsTryingToEnter()

> **getSeatIsTryingToEnter**(`ped`): `Promise`\<`number`\>

The seat a ped is trying to get into.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`number`\>

A promise of the seat, as the game numbers it.

#### Remarks

Partial: not yet confirmed in the game.

#### Example

```ts
const seat = await mp.game.ped.getSeatIsTryingToEnter(ped);
```

***

### getTimeOfDeath()

> **getTimeOfDeath**(`ped`): `Promise`\<`number`\>

The time of a ped's death.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`number`\>

A Promise of the time of death as an integer, in the game's own clock.

#### Example

```ts
const time = await mp.game.ped.getTimeOfDeath(ped);
```

***

### haveAllStreamingRequestsCompleted()

> **haveAllStreamingRequestsCompleted**(`ped`): `Promise`\<`boolean`\>

Whether all the streaming requests of a ped are done.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A promise of true when they are.

#### Remarks

Partial: the game's call is an unnamed one that is only a candidate: not yet confirmed in the game.

#### Example

```ts
if (await mp.game.ped.haveAllStreamingRequestsCompleted(ped)) { }
```

***

### isAimingFromCover()

> **isAimingFromCover**(`ped`): `Promise`\<`boolean`\>

Whether a ped is aiming from cover.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped aims from cover.

#### Example

```ts
const aiming = await mp.game.ped.isAimingFromCover(ped);
```

***

### isAPlayer()

> **isAPlayer**(`ped`): `Promise`\<`boolean`\>

Whether a ped is a player's character (not an AI ped).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true for a player's ped.

#### Example

```ts
const isPlayer = await mp.game.ped.isAPlayer(ped);
```

***

### isBeingJacked()

> **isBeingJacked**(`ped`): `Promise`\<`boolean`\>

Whether a ped is being jacked (pulled out of a vehicle).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped is being jacked.

#### Example

```ts
const jacked = await mp.game.ped.isBeingJacked(ped);
```

***

### isBeingStealthKilled()

> **isBeingStealthKilled**(`ped`): `Promise`\<`boolean`\>

Whether a ped is being killed by a stealth attack (a silent takedown).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped is being stealth-killed.

#### Example

```ts
const stealth = await mp.game.ped.isBeingStealthKilled(ped);
```

***

### isBeingStunned()

> **isBeingStunned**(`ped`, `p1`): `Promise`\<`boolean`\>

Whether a ped is stunned.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### p1

`number`

A flag of the game, as an integer.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped is stunned.

#### Example

```ts
const stunned = await mp.game.ped.isBeingStunned(ped, 0);
```

***

### isClimbing()

> **isClimbing**(`ped`): `Promise`\<`boolean`\>

Whether a ped is climbing.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped climbs.

#### Example

```ts
const climbing = await mp.game.ped.isClimbing(ped);
```

***

### isDeadOrDying()

> **isDeadOrDying**(`ped`, `p1`): `Promise`\<`boolean`\>

Whether a ped is dead or dying.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### p1

`boolean`

A flag of the game, set to true to count a ped that is dying as dying.

#### Returns

`Promise`\<`boolean`\>

A Promise of true when the ped is dead or dying.

#### Example

```ts
const dead = await mp.game.ped.isDeadOrDying(ped, true);
```

***

### isDefensiveAreaActive()

> **isDefensiveAreaActive**(`ped`, `p1`): `Promise`\<`boolean`\>

Whether a ped has its defensive area active (it stays inside its area).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### p1

`boolean`

A flag of the game, set to true for the default check.

#### Returns

`Promise`\<`boolean`\>

A Promise of true when the defensive area is active.

#### Example

```ts
const active = await mp.game.ped.isDefensiveAreaActive(ped, true);
```

***

### isDiving()

> **isDiving**(`ped`): `Promise`\<`boolean`\>

Whether a ped is diving.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped dives.

#### Example

```ts
const diving = await mp.game.ped.isDiving(ped);
```

***

### isDoingDriveby()

> **isDoingDriveby**(`ped`): `Promise`\<`boolean`\>

Whether a ped is doing a drive-by (shooting from a moving vehicle).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped does a drive-by.

#### Example

```ts
const driveby = await mp.game.ped.isDoingDriveby(ped);
```

***

### isDucking()

> **isDucking**(`ped`): `Promise`\<`boolean`\>

Whether a ped is ducking (crouching).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped ducks.

#### Example

```ts
const ducking = await mp.game.ped.isDucking(ped);
```

***

### isEvasiveDiving()

> **isEvasiveDiving**(`ped`): `Promise`\<`boolean`\>

Whether a ped is diving out of the way of something.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A promise of true while it is.

#### Remarks

Partial: not yet confirmed in the game. Answers a boolean where RAGE MP's typings say a number.

#### Example

```ts
if (await mp.game.ped.isEvasiveDiving(ped)) { }
```

***

### isFacingPed()

> **isFacingPed**(`ped`, `otherPed`, `angle`): `Promise`\<`boolean`\>

Whether a ped faces another ped within an angle.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### otherPed

`number` \| \{ `handle`: `number`; \}

The other ped, or its handle.

##### angle

`number`

The angle in degrees within which the ped counts as facing.

#### Returns

`Promise`\<`boolean`\>

A Promise of true when `ped` faces `otherPed` within the angle.

#### Example

```ts
const facing = await mp.game.ped.isFacingPed(ped, other, 60);
```

***

### isFalling()

> **isFalling**(`ped`): `Promise`\<`boolean`\>

Whether a ped is falling.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped falls.

#### Example

```ts
const falling = await mp.game.ped.isFalling(ped);
```

***

### isFatallyInjured()

> **isFatallyInjured**(`ped`): `Promise`\<`boolean`\>

Whether a ped is fatally injured (its health is gone and it is dying or dead).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true when the ped is fatally injured.

#### Example

```ts
const fatal = await mp.game.ped.isFatallyInjured(ped);
```

***

### isFleeing()

> **isFleeing**(`ped`): `Promise`\<`boolean`\>

Whether a ped is fleeing.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped flees.

#### Example

```ts
const fleeing = await mp.game.ped.isFleeing(ped);
```

***

### isGettingIntoAVehicle()

> **isGettingIntoAVehicle**(`ped`): `Promise`\<`boolean`\>

Whether a ped is getting into a vehicle.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped gets into a vehicle.

#### Example

```ts
const entering = await mp.game.ped.isGettingIntoAVehicle(ped);
```

***

### isGoingIntoCover()

> **isGoingIntoCover**(`ped`): `Promise`\<`boolean`\>

Whether a ped is going into cover.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped goes into cover.

#### Example

```ts
const toCover = await mp.game.ped.isGoingIntoCover(ped);
```

***

### isGroupMember()

> **isGroupMember**(`ped`, `groupId`): `Promise`\<`boolean`\>

Whether a ped is a member of a group.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### groupId

`number`

The group, as `createGroup` or `getGroupIndex` gave it.

#### Returns

`Promise`\<`boolean`\>

A Promise of true when the ped is a member.

#### Remarks

A group is a number this client got from `createGroup` or `getGroupIndex` (0 is no group); a number it never got is refused.

#### Example

```ts
const member = await mp.game.ped.isGroupMember(ped, group);
```

***

### isHeadingTowardsPosition()

> **isHeadingTowardsPosition**(`ped`, `x`, `y`, `z`, `p4`): `Promise`\<`boolean`\>

Whether a ped heads towards a position.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### x

`number`

The position's X coordinate, in metres.

##### y

`number`

The position's Y coordinate, in metres.

##### z

`number`

The position's Z coordinate, in metres.

##### p4

`number`

A distance-like value of the game, as a float.

#### Returns

`Promise`\<`boolean`\>

A Promise of true when the ped heads towards the position.

#### Example

```ts
const heading = await mp.game.ped.isHeadingTowardsPosition(ped, 0, 0, 70, 2);
```

***

### isHuman()

> **isHuman**(`ped`): `Promise`\<`boolean`\>

Whether a ped is human (not an animal).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true for a human ped.

#### Example

```ts
const human = await mp.game.ped.isHuman(ped);
```

***

### isInAnyVehicle()

> **isInAnyVehicle**(`ped`, `atGetIn`): `Promise`\<`boolean`\>

Whether a ped is in any vehicle.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### atGetIn

`boolean`

true to count a ped that is getting in as being in a vehicle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true when the ped is in a vehicle.

#### Example

```ts
const inAny = await mp.game.ped.isInAnyVehicle(ped, true);
```

***

### isInCombat()

> **isInCombat**(`ped`, `target`): `Promise`\<`boolean`\>

Whether a ped is in combat with a target.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### target

`number` \| \{ `handle`: `number`; \}

The target ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped fights the target.

#### Example

```ts
const fighting = await mp.game.ped.isInCombat(ped, other);
```

***

### isInGroup()

> **isInGroup**(`ped`): `Promise`\<`boolean`\>

Whether a ped is in a group.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true when the ped belongs to a group.

#### Example

```ts
const grouped = await mp.game.ped.isInGroup(ped);
```

***

### isInjured()

> **isInjured**(`ped`): `Promise`\<`boolean`\>

Tells whether a ped is injured: dead or dying.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, its handle or an object with a `handle`.

#### Returns

`Promise`\<`boolean`\>

A Promise of `true` while the ped is injured.

#### Example

```ts
const injured = await mp.game.ped.isInjured(ped);
```

***

### isInMeleeCombat()

> **isInMeleeCombat**(`ped`): `Promise`\<`boolean`\>

Whether a ped is in melee combat (fighting at close range).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped fights in melee.

#### Example

```ts
const fighting = await mp.game.ped.isInMeleeCombat(ped);
```

***

### isInParachuteFreeFall()

> **isInParachuteFreeFall**(`ped`): `Promise`\<`boolean`\>

Whether a ped is in the free fall of a parachute jump.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true during the free fall.

#### Example

```ts
const freeFall = await mp.game.ped.isInParachuteFreeFall(ped);
```

***

### isInVehicle()

> **isInVehicle**(`ped`, `vehicle`, `atGetIn`): `Promise`\<`boolean`\>

Whether a ped is in a given vehicle.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### vehicle

`number` \| \{ `handle`: `number`; \}

The vehicle, or its handle.

##### atGetIn

`boolean`

true to count a ped that is getting in as being in the vehicle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true when the ped is in the vehicle.

#### Example

```ts
const inCar = await mp.game.ped.isInVehicle(ped, vehicle, true);
```

***

### isJacking()

> **isJacking**(`ped`): `Promise`\<`boolean`\>

Whether a ped is jacking (pulling someone out of a vehicle).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped jacks a vehicle.

#### Example

```ts
const jacking = await mp.game.ped.isJacking(ped);
```

***

### isJumping()

> **isJumping**(`ped`): `Promise`\<`boolean`\>

Whether a ped is jumping.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped jumps.

#### Example

```ts
const jumping = await mp.game.ped.isJumping(ped);
```

***

### isJumpingOutOfVehicle()

> **isJumpingOutOfVehicle**(`ped`): `Promise`\<`boolean`\>

Whether a ped is jumping out of a vehicle.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped jumps out.

#### Example

```ts
const jumpingOut = await mp.game.ped.isJumpingOutOfVehicle(ped);
```

***

### isMale()

> **isMale**(`ped`): `Promise`\<`boolean`\>

Whether a ped is male.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true for a male ped.

#### Example

```ts
const male = await mp.game.ped.isMale(ped);
```

***

### isModel()

> **isModel**(`ped`, `modelHash`): `Promise`\<`boolean`\>

Whether a ped has a model.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### modelHash

`string` \| `number`

The model: its name, or its hash (`mp.joaat` of the name).

#### Returns

`Promise`\<`boolean`\>

A Promise of true when the ped has the model.

#### Example

```ts
const isModel = await mp.game.ped.isModel(ped, mp.joaat('<model name>'));
```

***

### isOnAnyBike()

> **isOnAnyBike**(`ped`): `Promise`\<`boolean`\>

Whether a ped is on any bike.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped rides a bike.

#### Example

```ts
const onBike = await mp.game.ped.isOnAnyBike(ped);
```

***

### isOnFoot()

> **isOnFoot**(`ped`): `Promise`\<`boolean`\>

Whether a ped is on foot (not in a vehicle and not on a bike).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped is on foot.

#### Example

```ts
const onFoot = await mp.game.ped.isOnFoot(ped);
```

***

### isOnSpecificVehicle()

> **isOnSpecificVehicle**(`ped`, `vehicle`): `Promise`\<`boolean`\>

Whether a ped stands on a given vehicle.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### vehicle

`number` \| \{ `handle`: `number`; \}

The vehicle, or its handle.

#### Returns

`Promise`\<`boolean`\>

A promise of true when it does.

#### Remarks

Partial: not yet confirmed in the game.

#### Example

```ts
if (await mp.game.ped.isOnSpecificVehicle(ped, vehicle)) { }
```

***

### isOnVehicle()

> **isOnVehicle**(`ped`): `Promise`\<`boolean`\>

Whether a ped stands on a vehicle.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A promise of true when it does.

#### Remarks

Partial: not yet confirmed in the game.

#### Example

```ts
if (await mp.game.ped.isOnVehicle(ped)) { }
```

***

### isPedRespondingToEvent()

> **isPedRespondingToEvent**(`ped`, `event`): `Promise`\<`boolean`\>

Whether a ped responds to an event (such as a shocking event it has seen).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### event

`string` \| `number`

The event, as an integer id or its hash.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped responds to the event.

#### Example

```ts
const responding = await mp.game.ped.isPedRespondingToEvent(ped, eventId);
```

***

### isPerformingMeleeAction()

> **isPerformingMeleeAction**(`ped`): `Promise`\<`boolean`\>

Whether a ped performs a melee action.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped performs a melee action.

#### Example

```ts
const meleeing = await mp.game.ped.isPerformingMeleeAction(ped);
```

***

### isRagdoll()

> **isRagdoll**(`ped`): `Promise`\<`boolean`\>

Whether a ped is ragdolling (its body goes limp, such as after a fall or a hit).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped ragdolls.

#### Example

```ts
const limp = await mp.game.ped.isRagdoll(ped);
```

***

### isReloading()

> **isReloading**(`ped`): `Promise`\<`boolean`\>

Whether a ped is reloading its weapon.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped reloads.

#### Example

```ts
const reloading = await mp.game.ped.isReloading(ped);
```

***

### isRespondingToEvent()

> **isRespondingToEvent**(`ped`, `event`): `Promise`\<`boolean`\>

The same check as `isPedRespondingToEvent`.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### event

`string` \| `number`

The event, as an integer id or its hash.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped responds to the event.

#### Example

```ts
const responding = await mp.game.ped.isRespondingToEvent(ped, eventId);
```

***

### isRunningMeleeTask()

> **isRunningMeleeTask**(`ped`): `Promise`\<`boolean`\>

Whether a ped runs a melee task.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped runs a melee task.

#### Example

```ts
const meleeTask = await mp.game.ped.isRunningMeleeTask(ped);
```

***

### isRunningMobilePhoneTask()

> **isRunningMobilePhoneTask**(`ped`): `Promise`\<`boolean`\>

Whether a ped runs a mobile phone task (talking or texting on a phone).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped uses a phone.

#### Example

```ts
const phone = await mp.game.ped.isRunningMobilePhoneTask(ped);
```

***

### isShooting()

> **isShooting**(`ped`): `Promise`\<`boolean`\>

Whether a ped is shooting.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped shoots.

#### Example

```ts
const shooting = await mp.game.ped.isShooting(ped);
```

***

### isSittingInAnyVehicle()

> **isSittingInAnyVehicle**(`ped`): `Promise`\<`boolean`\>

Whether a ped sits in any vehicle.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped sits in a vehicle.

#### Example

```ts
const seated = await mp.game.ped.isSittingInAnyVehicle(ped);
```

***

### isSittingInVehicle()

> **isSittingInVehicle**(`ped`, `vehicle`): `Promise`\<`boolean`\>

Whether a ped sits in a given vehicle.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### vehicle

`number` \| \{ `handle`: `number`; \}

The vehicle, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped sits in that vehicle.

#### Example

```ts
const inCar = await mp.game.ped.isSittingInVehicle(ped, vehicle);
```

***

### isStopped()

> **isStopped**(`ped`): `Promise`\<`boolean`\>

Whether a ped stands still.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped stands still.

#### Example

```ts
const still = await mp.game.ped.isStopped(ped);
```

***

### isSwimming()

> **isSwimming**(`ped`): `Promise`\<`boolean`\>

Whether a ped is swimming.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped swims.

#### Example

```ts
const swimming = await mp.game.ped.isSwimming(ped);
```

***

### isSwimmingUnderWater()

> **isSwimmingUnderWater**(`ped`): `Promise`\<`boolean`\>

Whether a ped is swimming under water.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped swims under water.

#### Example

```ts
const under = await mp.game.ped.isSwimmingUnderWater(ped);
```

***

### isTryingToEnterALockedVehicle()

> **isTryingToEnterALockedVehicle**(`ped`): `Promise`\<`boolean`\>

Whether a ped is trying to enter a locked vehicle.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped tries to enter a locked vehicle.

#### Example

```ts
const trying = await mp.game.ped.isTryingToEnterALockedVehicle(ped);
```

***

### isUsingActionMode()

> **isUsingActionMode**(`ped`): `Promise`\<`boolean`\>

Whether a ped uses the action mode (the slow-motion combat mode of the game).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped uses the action mode.

#### Example

```ts
const action = await mp.game.ped.isUsingActionMode(ped);
```

***

### isUsingAnyScenario()

> **isUsingAnyScenario**(`ped`): `Promise`\<`boolean`\>

Whether a ped uses any scenario (an idle activity such as smoking).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped uses a scenario.

#### Example

```ts
const busy = await mp.game.ped.isUsingAnyScenario(ped);
```

***

### isVaulting()

> **isVaulting**(`ped`): `Promise`\<`boolean`\>

Whether a ped is vaulting over an obstacle.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the ped vaults.

#### Example

```ts
const vaulting = await mp.game.ped.isVaulting(ped);
```

***

### isWearingHelmet()

> **isWearingHelmet**(`ped`): `Promise`\<`boolean`\>

Whether a ped wears a helmet.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A promise of true if the ped wears a helmet.

#### Remarks

Partial: not yet confirmed in the game.

#### Example

```ts
const on = await mp.game.ped.isWearingHelmet(ped);
```

***

### knockOffProp()

> **knockOffProp**(`ped`, `p1`, `p2`, `p3`, `p4`): `void`

Knocks the props (a hat, glasses, a helmet) off a ped.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### p1

`boolean`

A flag of the game, a bool.

##### p2

`boolean`

A flag of the game, a bool.

##### p3

`boolean`

A flag of the game, a bool.

##### p4

`boolean`

A flag of the game, a bool.

#### Returns

`void`

#### Remarks

Partial: not yet confirmed in the game.

#### Example

```ts
mp.game.ped.knockOffProp(ped, false, true, true, true);
```

***

### knockOffVehicle()

> **knockOffVehicle**(`ped`): `void`

Knocks a ped off its vehicle.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`void`

#### Example

```ts
mp.game.ped.knockOffVehicle(ped);
```

***

### playFacialAnim()

> **playFacialAnim**(`ped`, `animName`, `animDict`): `void`

Plays a facial animation on a ped.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### animName

`string` \| `number`

The animation's name, or its hash.

##### animDict

`string` \| `number`

The animation dictionary's name, or its hash.

#### Returns

`void`

#### Example

```ts
mp.game.ped.playFacialAnim(ped, 'mood_happy_1', 'facials@gen_male@variations@normal');
```

***

### registerHatedTargetsAround()

> **registerHatedTargetsAround**(`ped`, `radius`): `void`

Makes a ped hate the targets around it.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### radius

`number`

The radius, in metres.

#### Returns

`void`

#### Remarks

Partial: not yet confirmed in the game.

#### Example

```ts
mp.game.ped.registerHatedTargetsAround(ped, 30);
```

***

### registerTarget()

> **registerTarget**(`ped`, `target`): `void`

Registers a ped as a target that a ped may aim at.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### target

`number` \| \{ `handle`: `number`; \}

The target, or its handle.

#### Returns

`void`

#### Example

```ts
mp.game.ped.registerTarget(ped, other);
```

***

### removeDefensiveArea()

> **removeDefensiveArea**(`ped`, `toggle`): `void`

Removes a ped's defensive area.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### toggle

`boolean`

A flag of the game, set to true for the default removal.

#### Returns

`void`

#### Example

```ts
mp.game.ped.removeDefensiveArea(ped, true);
```

***

### removeFromGroup()

> **removeFromGroup**(`ped`): `void`

Removes a ped from its group.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`void`

#### Example

```ts
mp.game.ped.removeFromGroup(ped);
```

***

### removeGroup()

> **removeGroup**(`groupId`): `void`

Removes a group; its peds are no longer in it.

#### Parameters

##### groupId

`number`

The group, as `createGroup` or `getGroupIndex` gave it.

#### Returns

`void`

#### Remarks

A group is a number this client got from `createGroup` or `getGroupIndex` (0 is no group); a number it never got is refused.

#### Example

```ts
mp.game.ped.removeGroup(group);
```

***

### removeRelationshipGroup()

> **removeRelationshipGroup**(`groupHash`): `void`

Removes a relationship group.

#### Parameters

##### groupHash

`string` \| `number`

The group's hash, or its name.

#### Returns

`void`

#### Example

```ts
mp.game.ped.removeRelationshipGroup(mp.joaat('<group name>'));
```

***

### removeScenarioBlockingArea()

> **removeScenarioBlockingArea**(`scenario`, `network`): `void`

Removes a scenario blocking area.

#### Parameters

##### scenario

`number`

The scenario's id, as an integer.

##### network

`boolean`

true to remove the area on the network (for all machines).

#### Returns

`void`

#### Example

```ts
mp.game.ped.removeScenarioBlockingArea(scenarioId, false);
```

***

### removeScenarioBlockingAreas()

> **removeScenarioBlockingAreas**(): `void`

Removes all the blocking areas of scenarios (the areas where peds do not start scenarios).

#### Returns

`void`

#### Example

```ts
mp.game.ped.removeScenarioBlockingAreas();
```

***

### resetAiMeleeWeaponDamageModifier()

> **resetAiMeleeWeaponDamageModifier**(): `void`

Resets the AI melee weapon damage multiplier to the game's default.

#### Returns

`void`

#### Example

```ts
mp.game.ped.resetAiMeleeWeaponDamageModifier();
```

***

### resetLastVehicle()

> **resetLastVehicle**(`ped`): `void`

Forgets the vehicle a ped last used.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`void`

#### Example

```ts
mp.game.ped.resetLastVehicle(ped);
```

***

### resetMovementClipset()

> **resetMovementClipset**(`ped`, `p1`): `void`

Gives a ped back its own movement clipset.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### p1

`number`

The blend duration, a float.

#### Returns

`void`

#### Remarks

Partial: not yet confirmed in the game.

#### Example

```ts
mp.game.ped.resetMovementClipset(ped, 0.25);
```

***

### resetRagdollTimer()

> **resetRagdollTimer**(`ped`): `void`

Resets a ped's ragdoll timer.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`void`

#### Remarks

Partial: the game's call is an unnamed one that is only a candidate: not yet confirmed in the game.

#### Example

```ts
mp.game.ped.resetRagdollTimer(ped);
```

***

### resetStrafeClipset()

> **resetStrafeClipset**(`ped`): `void`

Gives a ped back its own strafing clipset.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`void`

#### Remarks

Partial: not yet confirmed in the game.

#### Example

```ts
mp.game.ped.resetStrafeClipset(ped);
```

***

### resetVisibleDamage()

> **resetVisibleDamage**(`ped`): `void`

Removes a ped's visible damage.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`void`

#### Remarks

Partial: the game's call is an unnamed one that is only a candidate: not yet confirmed in the game.

#### Example

```ts
mp.game.ped.resetVisibleDamage(ped);
```

***

### resetWeaponMovementClipset()

> **resetWeaponMovementClipset**(`ped`): `void`

Gives a ped back its own clipset for moving with a weapon.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`void`

#### Remarks

Partial: not yet confirmed in the game.

#### Example

```ts
mp.game.ped.resetWeaponMovementClipset(ped);
```

***

### resurrect()

> **resurrect**(`ped`): `void`

Revives a dead ped on the spot.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`void`

#### Example

```ts
mp.game.ped.resurrect(ped);
```

***

### reviveInjured()

> **reviveInjured**(`ped`): `void`

Revives an injured ped.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped (or its handle).

#### Returns

`void`

#### Remarks

The game has this call, but it has not been checked in the running game yet.

#### Example

```ts
mp.game.ped.reviveInjured(ped);
```

***

### setAccuracy()

> **setAccuracy**(`ped`, `accuracy`): `void`

Sets the accuracy of a ped's shots.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### accuracy

`number`

The accuracy as an integer, the game's own scale.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setAccuracy(ped, 80);
```

***

### setAiMeleeWeaponDamageModifier()

> **setAiMeleeWeaponDamageModifier**(`modifier`): `void`

Sets the damage multiplier of melee weapons that AI peds use.

#### Parameters

##### modifier

`number`

The multiplier as a float; 1.0 is normal.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setAiMeleeWeaponDamageModifier(2.0);
```

***

### setAlertness()

> **setAlertness**(`ped`, `value`): `void`

Sets how alert a ped is.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### value

`number`

The alertness, as the game numbers it (an integer).

#### Returns

`void`

#### Remarks

Partial: not yet confirmed in the game.

#### Example

```ts
mp.game.ped.setAlertness(ped, 3);
```

***

### setAsGroupLeader()

> **setAsGroupLeader**(`ped`, `groupId`): `void`

Makes a ped the leader of a group.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### groupId

`number`

The group, as `createGroup` or `getGroupIndex` gave it.

#### Returns

`void`

#### Remarks

A group is a number this client got from `createGroup` or `getGroupIndex` (0 is no group); a number it never got is refused.

#### Example

```ts
mp.game.ped.setAsGroupLeader(mp.players.local, group);
```

***

### setAsGroupMember()

> **setAsGroupMember**(`ped`, `groupId`): `void`

Makes a ped a member of a group.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### groupId

`number`

The group, as `createGroup` or `getGroupIndex` gave it.

#### Returns

`void`

#### Remarks

A group is a number this client got from `createGroup` or `getGroupIndex` (0 is no group); a number it never got is refused.

#### Example

```ts
mp.game.ped.setAsGroupMember(ped, group);
```

***

### setBlockingOfNonTemporaryEvents()

> **setBlockingOfNonTemporaryEvents**(`ped`, `toggle`): `void`

Blocks a ped from the game's non-temporary events (events that change its long-term behaviour).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### toggle

`boolean`

true to block such events, false to let them through.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setBlockingOfNonTemporaryEvents(ped, true);
```

***

### setCanArmIk()

> **setCanArmIk**(`ped`, `toggle`): `void`

Lets a ped use inverse kinematics on its arms (the hands reach for objects), or not.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### toggle

`boolean`

true to allow arm IK, false to forbid it.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setCanArmIk(ped, false);
```

***

### setCanBeDraggedOut()

> **setCanBeDraggedOut**(`ped`, `toggle`): `void`

Allows or forbids dragging a ped out of a vehicle.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### toggle

`boolean`

`true` to allow.

#### Returns

`void`

#### Remarks

Partial: the game's call is an unnamed one that is only a candidate: not yet confirmed in the game.

#### Example

```ts
mp.game.ped.setCanBeDraggedOut(ped, true);
```

***

### setCanBeKnockedOffVehicle()

> **setCanBeKnockedOffVehicle**(`ped`, `state`): `void`

Sets whether a ped can be knocked off a vehicle.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### state

`number`

The state as an integer, the game's own values.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setCanBeKnockedOffVehicle(ped, 0);
```

***

### setCanBeShotInVehicle()

> **setCanBeShotInVehicle**(`ped`, `toggle`): `void`

Allows or forbids shooting a ped in a vehicle.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### toggle

`boolean`

`true` to allow.

#### Returns

`void`

#### Remarks

Partial: the game's call is an unnamed one that is only a candidate: not yet confirmed in the game.

#### Example

```ts
mp.game.ped.setCanBeShotInVehicle(ped, true);
```

***

### setCanBeTargetedWhenInjured()

> **setCanBeTargetedWhenInjured**(`ped`, `toggle`): `void`

Lets a ped be targeted while injured, or not.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### toggle

`boolean`

true to allow targeting an injured ped, false to forbid it.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setCanBeTargetedWhenInjured(ped, true);
```

***

### setCanHeadIk()

> **setCanHeadIk**(`ped`, `toggle`): `void`

Lets a ped use inverse kinematics on its head (the head turns to look at targets), or not.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### toggle

`boolean`

true to allow head IK, false to forbid it.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setCanHeadIk(ped, false);
```

***

### setCanPlayAmbientAnims()

> **setCanPlayAmbientAnims**(`ped`, `toggle`): `void`

Lets a ped play ambient animations (idle activities), or not.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### toggle

`boolean`

true to allow ambient animations, false to forbid them.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setCanPlayAmbientAnims(ped, false);
```

***

### setCanPlayAmbientBaseAnims()

> **setCanPlayAmbientBaseAnims**(`ped`, `toggle`): `void`

Lets a ped play its ambient base animations (the idle poses under the ambient ones), or not.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### toggle

`boolean`

true to allow the base animations, false to forbid them.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setCanPlayAmbientBaseAnims(ped, false);
```

***

### setCanPlayGestureAnims()

> **setCanPlayGestureAnims**(`ped`, `toggle`): `void`

Lets a ped play gesture animations (such as pointing or waving), or not.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### toggle

`boolean`

true to allow gestures, false to forbid them.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setCanPlayGestureAnims(ped, false);
```

***

### setCanRagdoll()

> **setCanRagdoll**(`ped`, `toggle`): `void`

Lets a ped ragdoll (its body goes limp when hit or falling), or not.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### toggle

`boolean`

true to allow ragdolling, false to forbid it.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setCanRagdoll(ped, false);
```

***

### setCanRagdollFromPlayerImpact()

> **setCanRagdollFromPlayerImpact**(`ped`, `toggle`): `void`

Lets a ped ragdoll when a player bumps into it, or not.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### toggle

`boolean`

true to allow the ragdoll, false to forbid it.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setCanRagdollFromPlayerImpact(ped, false);
```

***

### setCanTeleportToGroupLeader()

> **setCanTeleportToGroupLeader**(`pedHandle`, `groupHandle`, `toggle`): `void`

Allows or forbids a group member to teleport to its leader when it is left far behind.

#### Parameters

##### pedHandle

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### groupHandle

`number`

The group, as `createGroup` or `getGroupIndex` gave it.

##### toggle

`boolean`

true to allow.

#### Returns

`void`

#### Remarks

A group is a number this client got from `createGroup` or `getGroupIndex` (0 is no group); a number it never got is refused.

#### Example

```ts
mp.game.ped.setCanTeleportToGroupLeader(ped, group, true);
```

***

### setCanUseAutoConversationLookat()

> **setCanUseAutoConversationLookat**(`ped`, `toggle`): `void`

Lets a ped look at the speaker in an automatic conversation, or not.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### toggle

`boolean`

true to allow automatic look-at, false to forbid it.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setCanUseAutoConversationLookat(ped, false);
```

***

### setCapsule()

> **setCapsule**(`ped`, `value`): `void`

Sets the capsule (the collision size) of a ped.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### value

`number`

The capsule size as a float, in the game's units.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setCapsule(ped, 0.6);
```

***

### setCombatAbility()

> **setCombatAbility**(`ped`, `p1`): `void`

Sets the combat ability of a ped (how well it fights).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### p1

`number`

The ability as an integer, the game's own values.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setCombatAbility(ped, 2);
```

***

### setCombatAttributes()

> **setCombatAttributes**(`ped`, `attributeIndex`, `enabled`): `void`

Turns a combat attribute of a ped on or off.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### attributeIndex

`number`

The attribute's index, as an integer.

##### enabled

`boolean`

true to turn the attribute on, false to turn it off.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setCombatAttributes(ped, 46, true);
```

***

### setCombatFloat()

> **setCombatFloat**(`ped`, `combatType`, `p2`): `void`

Sets a combat float of a ped (a tuning value of its combat behaviour).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### combatType

`number`

The combat float's type, as an integer.

##### p2

`number`

The value, as a float.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setCombatFloat(ped, 0, 1.0);
```

***

### setCombatMovement()

> **setCombatMovement**(`ped`, `combatMovement`): `void`

Sets how a ped moves in combat (stays, defends, advances).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### combatMovement

`number`

The movement as an integer, the game's own values.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setCombatMovement(ped, 2);
```

***

### setCombatRange()

> **setCombatRange**(`ped`, `p1`): `void`

Sets the combat range of a ped (how far it fights from).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### p1

`number`

The range as an integer, the game's own values.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setCombatRange(ped, 2);
```

***

### setConfigFlag()

> **setConfigFlag**(`ped`, `flagId`, `value`): `void`

Sets a config flag of a ped (a behaviour switch of the ped).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### flagId

`number`

The flag's id, as an integer.

##### value

`boolean`

The value to set.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setConfigFlag(ped, 32, true);
```

***

### setCreateRandomCops()

> **setCreateRandomCops**(`toggle`): `void`

Turns the random police spawning on or off.

#### Parameters

##### toggle

`boolean`

true to create random cops, false to stop.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setCreateRandomCops(false);
```

***

### setDefensiveAreaDirection()

> **setDefensiveAreaDirection**(`ped`, `x`, `y`, `z`, `p4`): `void`

Sets the direction of a ped's defensive area.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### x

`number`

The direction's X component.

##### y

`number`

The direction's Y component.

##### z

`number`

The direction's Z component.

##### p4

`boolean`

A flag of the game, a bool.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setDefensiveAreaDirection(ped, 0, 1, 0, false);
```

***

### setDensityMultiplierThisFrame()

> **setDensityMultiplierThisFrame**(`multiplier`): `void`

The same as `setPedDensityMultiplierThisFrame`.

#### Parameters

##### multiplier

`number`

The multiplier as a float; 1.0 is normal.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setDensityMultiplierThisFrame(0.5);
```

***

### setDesiredHeading()

> **setDesiredHeading**(`ped`, `heading`): `void`

Sets the heading a ped turns to.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### heading

`number`

The heading in degrees.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setDesiredHeading(ped, 90);
```

***

### setDriverAbility()

> **setDriverAbility**(`driver`, `ability`): `void`

Sets the driving ability of a driver.

#### Parameters

##### driver

`number` \| \{ `handle`: `number`; \}

The driver ped, or its handle.

##### ability

`number`

The ability as a float, the game's own scale.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setDriverAbility(driver, 1.0);
```

***

### setDriverAggressiveness()

> **setDriverAggressiveness**(`driver`, `aggressiveness`): `void`

Sets how aggressively a driver drives.

#### Parameters

##### driver

`number` \| \{ `handle`: `number`; \}

The driver ped, or its handle.

##### aggressiveness

`number`

The aggressiveness as a float, the game's own scale.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setDriverAggressiveness(driver, 0.5);
```

***

### setDriverRacingModifier()

> **setDriverRacingModifier**(`driver`, `modifier`): `void`

Sets the racing skill of a driver.

#### Parameters

##### driver

`number` \| \{ `handle`: `number`; \}

The driver ped, or its handle.

##### modifier

`number`

The modifier as a float; 1.0 is normal.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setDriverRacingModifier(driver, 1.0);
```

***

### setEnableBoundAnkles()

> **setEnableBoundAnkles**(`ped`, `toggle`): `void`

Lets a ped's ankles be bound, or not.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### toggle

`boolean`

true to allow bound ankles, false to disallow them.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setEnableBoundAnkles(ped, true);
```

***

### setEnableEnveffScale()

> **setEnableEnveffScale**(`ped`, `toggle`): `void`

Turns the scale of a ped's environmental effects on or off.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### toggle

`boolean`

`true` to turn it on.

#### Returns

`void`

#### Remarks

Partial: not yet confirmed in the game.

#### Example

```ts
mp.game.ped.setEnableEnveffScale(ped, true);
```

***

### setEnableHandcuffs()

> **setEnableHandcuffs**(`ped`, `toggle`): `void`

Lets a ped be handcuffed, or not.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### toggle

`boolean`

true to allow handcuffs, false to disallow them.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setEnableHandcuffs(ped, true);
```

***

### setEnableScuba()

> **setEnableScuba**(`ped`, `toggle`): `void`

Turns a ped's scuba gear on or off.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### toggle

`boolean`

`true` to turn it on.

#### Returns

`void`

#### Remarks

Partial: the game's call is an unnamed one that is only a candidate: not yet confirmed in the game.

#### Example

```ts
mp.game.ped.setEnableScuba(ped, true);
```

***

### setEnableWeaponBlocking()

> **setEnableWeaponBlocking**(`ped`, `toggle`): `void`

Turns a ped's weapon blocking on or off.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### toggle

`boolean`

`true` to turn it on.

#### Returns

`void`

#### Remarks

Partial: the game's call is an unnamed one that is only a candidate: not yet confirmed in the game.

#### Example

```ts
mp.game.ped.setEnableWeaponBlocking(ped, true);
```

***

### setFiringPattern()

> **setFiringPattern**(`ped`, `patternHash`): `void`

Sets the firing pattern of a ped (how it fires its weapon: bursts, single shots ...).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### patternHash

`string` \| `number`

The firing pattern's hash, or its name.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setFiringPattern(ped, mp.joaat('<pattern name>'));
```

***

### setFleeAttributes()

> **setFleeAttributes**(`ped`, `attributeFlags`, `enable`): `void`

Sets how a ped flees.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### attributeFlags

`number`

The flags.

##### enable

`boolean`

`true` to set them.

#### Returns

`void`

#### Remarks

Partial: not yet confirmed in the game.

#### Example

```ts
mp.game.ped.setFleeAttributes(ped, 0, false);
```

***

### setForceFootstepUpdate()

> **setForceFootstepUpdate**(`ped`, `toggle`): `void`

Forces the footstep sounds of a ped to update on this frame.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### toggle

`boolean`

true to force the update, false to leave it.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setForceFootstepUpdate(ped, true);
```

***

### setGravity()

> **setGravity**(`ped`, `toggle`): `void`

Turns the gravity of a ped on or off.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### toggle

`boolean`

true to apply gravity, false to turn it off.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setGravity(ped, false);
```

***

### setGroupFormation()

> **setGroupFormation**(`groupId`, `formationType`): `void`

Sets the formation a group walks in.

#### Parameters

##### groupId

`number`

The group, as `createGroup` or `getGroupIndex` gave it.

##### formationType

`number`

The formation, as the game numbers them (an integer).

#### Returns

`void`

#### Remarks

A group is a number this client got from `createGroup` or `getGroupIndex` (0 is no group); a number it never got is refused.

#### Example

```ts
mp.game.ped.setGroupFormation(group, 0);
```

***

### setGroupFormationSpacing()

> **setGroupFormationSpacing**(`groupId`, `p1`, `p2`, `p3`): `void`

Sets the spacing of a group's formation.

#### Parameters

##### groupId

`number`

The group, as `createGroup` or `getGroupIndex` gave it.

##### p1

`number`

A distance of the game, a float.

##### p2

`number`

A distance of the game, a float.

##### p3

`number`

A distance of the game, a float.

#### Returns

`void`

#### Remarks

A group is a number this client got from `createGroup` or `getGroupIndex` (0 is no group); a number it never got is refused.

#### Example

```ts
mp.game.ped.setGroupFormationSpacing(group, 1, 1, 1);
```

***

### setGroupMemberPassengerIndex()

> **setGroupMemberPassengerIndex**(`ped`, `index`): `void`

Sets the seat index of a group member who is a passenger.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### index

`number`

The seat index, as an integer.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setGroupMemberPassengerIndex(ped, 1);
```

***

### setGroupSeparationRange()

> **setGroupSeparationRange**(`groupHandle`, `separationRange`): `void`

Sets how far a group member may be from its leader before it counts as separated.

#### Parameters

##### groupHandle

`number`

The group, as `createGroup` or `getGroupIndex` gave it.

##### separationRange

`number`

The distance, in metres.

#### Returns

`void`

#### Remarks

A group is a number this client got from `createGroup` or `getGroupIndex` (0 is no group); a number it never got is refused.

#### Example

```ts
mp.game.ped.setGroupSeparationRange(group, 30);
```

***

### setHelmetPropIndex()

> **setHelmetPropIndex**(`ped`, `propIndex`, `p2?`): `void`

Sets which helmet a ped puts on.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### propIndex

`number`

The helmet, as VI's prop index (an integer).

##### p2?

`boolean`

A flag of the game, a bool.

#### Returns

`void`

#### Remarks

Partial: not yet confirmed in the game.

#### Example

```ts
mp.game.ped.setHelmetPropIndex(ped, 0, false);
```

***

### setHelmetTextureIndex()

> **setHelmetTextureIndex**(`ped`, `textureIndex`): `void`

Sets the texture of the helmet a ped puts on.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### textureIndex

`number`

The texture, as VI's index (an integer).

#### Returns

`void`

#### Remarks

Partial: not yet confirmed in the game.

#### Example

```ts
mp.game.ped.setHelmetTextureIndex(ped, 0);
```

***

### setIkTarget()

> **setIkTarget**(`ped`, `ikIndex`, `entityLookAt`, `boneLookAt`, `offsetX`, `offsetY`, `offsetZ`, `ikflag`, `blendInDuration`, `blendOutDuration`): `void`

Points a limb of a ped's inverse kinematics at an entity or a place.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### ikIndex

`number`

The limb, as the game numbers it.

##### entityLookAt

`number` \| \{ `handle`: `number`; \}

An entity, or its handle (0 for none).

##### boneLookAt

`number`

The bone of the entity.

##### offsetX

`number`

The offset X.

##### offsetY

`number`

The offset Y.

##### offsetZ

`number`

The offset Z.

##### ikflag

`number`

The flags.

##### blendInDuration

`number`

The blend-in time.

##### blendOutDuration

`number`

The blend-out time.

#### Returns

`void`

#### Remarks

Partial: not yet confirmed in the game.

#### Example

```ts
mp.game.ped.setIkTarget(ped, 1, target, 0, 0, 0, 0, 0, 100, 100);
```

***

### setIntoVehicle()

> **setIntoVehicle**(`ped`, `vehicle`, `seatIndex`): `void`

Puts a ped into a vehicle seat.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### vehicle

`number` \| \{ `handle`: `number`; \}

The vehicle, or its handle.

##### seatIndex

`number`

The seat: -1 for the driver, 0 for the front passenger, and so on.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setIntoVehicle(ped, vehicle, -1);
```

***

### setInVehicleContext()

> **setInVehicleContext**(`ped`, `context`): `void`

Sets a ped's in-vehicle context.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### context

`number`

The context, a VI key.

#### Returns

`void`

#### Remarks

Partial: the game's call is an unnamed one that is only a candidate: not yet confirmed in the game. The context is a VI key.

#### Example

```ts
mp.game.ped.setInVehicleContext(ped, contextKey);
```

***

### setKeepTask()

> **setKeepTask**(`ped`, `toggle`): `void`

Keeps a ped's current task from being replaced by other tasks.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### toggle

`boolean`

true to keep the task, false to allow it to change.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setKeepTask(ped, true);
```

***

### setLegIkMode()

> **setLegIkMode**(`ped`, `mode`): `void`

Sets the leg inverse kinematics mode of a ped (how its feet follow the ground).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### mode

`number`

The mode as an integer, the game's own values.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setLegIkMode(ped, 0);
```

***

### setMaxHealth()

> **setMaxHealth**(`ped`, `value`): `void`

Sets the maximum health of a ped.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### value

`number`

The maximum health as an integer.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setMaxHealth(ped, 200);
```

***

### setMaxMoveBlendRatio()

> **setMaxMoveBlendRatio**(`ped`, `value`): `void`

Sets the highest move blend ratio a ped can reach (the limit of its movement speed).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### value

`number`

The ratio as a float.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setMaxMoveBlendRatio(ped, 1.0);
```

***

### setMaxTimeInWater()

> **setMaxTimeInWater**(`ped`, `value`): `void`

Sets how long a ped may stay in water before it drowns.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### value

`number`

The time as a float, in the game's units.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setMaxTimeInWater(ped, 10);
```

***

### setMaxTimeUnderwater()

> **setMaxTimeUnderwater**(`ped`, `value`): `void`

Sets how long a ped may stay under water before it drowns.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### value

`number`

The time as a float, in the game's units.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setMaxTimeUnderwater(ped, 10);
```

***

### setMoney()

> **setMoney**(`ped`, `amount`): `void`

Sets the money a ped carries.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### amount

`number`

The amount as an integer.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setMoney(ped, 100);
```

***

### setMoveRateOverride()

> **setMoveRateOverride**(`ped`, `value`): `void`

Sets a move rate override of a ped (a multiplier of its movement speed).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### value

`number`

The multiplier as a float; 1.0 is normal.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setMoveRateOverride(ped, 1.0);
```

***

### setPedDensityMultiplierThisFrame()

> **setPedDensityMultiplierThisFrame**(`multiplier`): `void`

Sets the ped density for this frame: how many peds the world spawns, relative to normal (1.0).

#### Parameters

##### multiplier

`number`

The multiplier as a float; 1.0 is normal, 0.0 spawns no peds.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setPedDensityMultiplierThisFrame(0.5);
```

***

### setPlaysHeadOnHornAnimWhenDiesInVehicle()

> **setPlaysHeadOnHornAnimWhenDiesInVehicle**(`ped`, `toggle`): `void`

Makes a ped play the head-on-horn animation when it dies in a vehicle, or not.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### toggle

`boolean`

true to play the animation, false to skip it.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setPlaysHeadOnHornAnimWhenDiesInVehicle(ped, true);
```

***

### setPopControlSphereThisFrame()

> **setPopControlSphereThisFrame**(`x`, `y`, `z`, `min`, `max`): `void`

Sets a sphere in which peds are controlled by the population control for this frame (where peds spawn and despawn).

#### Parameters

##### x

`number`

The centre's X coordinate, in metres.

##### y

`number`

The centre's Y coordinate, in metres.

##### z

`number`

The centre's Z coordinate, in metres.

##### min

`number`

The inner radius, in metres.

##### max

`number`

The outer radius, in metres.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setPopControlSphereThisFrame(0, 0, 70, 10, 50);
```

***

### setRagdollBlockingFlags()

> **setRagdollBlockingFlags**(`ped`, `flags`): `void`

Sets the flags that block a ped from ragdolling.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### flags

`number`

The flags as an integer bit mask.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setRagdollBlockingFlags(ped, 0);
```

***

### setRelationshipBetweenGroups()

> **setRelationshipBetweenGroups**(`relationship`, `group1`, `group2`): `void`

Sets the relationship between two relationship groups.

#### Parameters

##### relationship

`number`

The relationship, as the game's integer.

##### group1

`string` \| `number`

The first group's hash, or its name.

##### group2

`string` \| `number`

The second group's hash, or its name.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setRelationshipBetweenGroups(5, mp.joaat('PLAYER'), mp.joaat('<group name>'));
```

***

### setRelationshipGroupDefaultHash()

> **setRelationshipGroupDefaultHash**(`ped`, `hash`): `void`

Sets the default relationship group of a ped.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### hash

`string` \| `number`

The relationship group's hash, or its name.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setRelationshipGroupDefaultHash(ped, mp.joaat('PLAYER'));
```

***

### setRelationshipGroupHash()

> **setRelationshipGroupHash**(`ped`, `hash`): `void`

Sets the relationship group of a ped.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### hash

`string` \| `number`

The relationship group's hash, or its name.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setRelationshipGroupHash(ped, mp.joaat('PLAYER'));
```

***

### setResetFlag()

> **setResetFlag**(`ped`, `flagId`, `doReset`): `void`

Sets a reset flag of a ped for this frame.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### flagId

`number`

The flag.

##### doReset

`boolean`

Passed to the game as it is.

#### Returns

`void`

#### Remarks

Partial: the game's call is an unnamed one that is only a candidate: not yet confirmed in the game.

#### Example

```ts
mp.game.ped.setResetFlag(ped, 124, true);
```

***

### setScriptedAnimSeatOffset()

> **setScriptedAnimSeatOffset**(`ped`, `p1`): `void`

Sets the seat offset of a scripted animation of a ped in a vehicle.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### p1

`number`

The offset, as a float.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setScriptedAnimSeatOffset(ped, 0);
```

***

### setShootRate()

> **setShootRate**(`ped`, `shootRate`): `void`

Sets how fast a ped fires.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### shootRate

`number`

The rate as an integer.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setShootRate(ped, 100);
```

***

### setShouldPlayImmediateScenarioExit()

> **setShouldPlayImmediateScenarioExit**(`ped`): `void`

Makes a ped play the immediate exit of its scenario when the scenario ends.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setShouldPlayImmediateScenarioExit(ped);
```

***

### setShouldPlayNormalScenarioExit()

> **setShouldPlayNormalScenarioExit**(`ped`): `void`

Makes a ped play the normal exit of its scenario when the scenario ends.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setShouldPlayNormalScenarioExit(ped);
```

***

### setSphereDefensiveArea()

> **setSphereDefensiveArea**(`ped`, `x`, `y`, `z`, `radius`, `p5`, `p6`): `void`

Sets a spherical defensive area: the ped stays within the sphere while it fights or waits.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### x

`number`

The centre's X coordinate, in metres.

##### y

`number`

The centre's Y coordinate, in metres.

##### z

`number`

The centre's Z coordinate, in metres.

##### radius

`number`

The sphere's radius, in metres.

##### p5

`boolean`

A flag of the game, a bool.

##### p6

`boolean`

A flag of the game, a bool.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setSphereDefensiveArea(ped, 0, 0, 70, 10, false, false);
```

***

### setStrafeClipset()

> **setStrafeClipset**(`ped`, `clipSet`): `void`

Sets the clipset (a set of animation clips) a ped strafes with.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### clipSet

`string` \| `number`

The clipset: its name or hash.

#### Returns

`void`

#### Remarks

Partial: not yet confirmed in the game. A clipset is a VI clipset name or its hash.

#### Example

```ts
mp.game.ped.setStrafeClipset(ped, '<clipset name>');
```

***

### setSuffersCriticalHits()

> **setSuffersCriticalHits**(`ped`, `toggle`): `void`

Sets whether a ped suffers critical hits.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### toggle

`boolean`

`true` to turn it on.

#### Returns

`void`

#### Remarks

Partial: the game's call is an unnamed one that is only a candidate: not yet confirmed in the game.

#### Example

```ts
mp.game.ped.setSuffersCriticalHits(ped, true);
```

***

### setSweat()

> **setSweat**(`ped`, `sweat`): `void`

Sets how sweaty a ped is.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### sweat

`number`

The amount as a float, the game's own scale.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setSweat(ped, 0.5);
```

***

### setTargetLossResponse()

> **setTargetLossResponse**(`ped`, `responseType`): `void`

Sets how a ped responds when it loses its target.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### responseType

`number`

The response as an integer, the game's own values.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setTargetLossResponse(ped, 1);
```

***

### setToLoadCover()

> **setToLoadCover**(`ped`, `toggle`): `void`

Makes a ped load the cover around it, or stops it.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### toggle

`boolean`

`true` to turn it on.

#### Returns

`void`

#### Remarks

Partial: the game's call is an unnamed one that is only a candidate: not yet confirmed in the game.

#### Example

```ts
mp.game.ped.setToLoadCover(ped, true);
```

***

### setUsingActionMode()

> **setUsingActionMode**(`ped`, `toggle`, `action`): `void`

Turns the action mode of a ped on or off, with the action the mode uses.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### toggle

`boolean`

true to use the action mode, false to stop.

##### action

`number`

The action as an integer, the game's own values.

#### Returns

`void`

#### Remarks

SixL takes `(ped, toggle, action)`. RAGE MP's call has one more argument, which SixL does not take.

#### Example

```ts
mp.game.ped.setUsingActionMode(ped, true, 0);
```

***

### setWeaponMovementClipset()

> **setWeaponMovementClipset**(`ped`, `clipSet`): `void`

Sets the clipset a ped moves with while it holds a weapon.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### clipSet

`string` \| `number`

The clipset: its name or hash.

#### Returns

`void`

#### Remarks

Partial: not yet confirmed in the game. A clipset is a VI clipset name or its hash.

#### Example

```ts
mp.game.ped.setWeaponMovementClipset(ped, '<clipset name>');
```

***

### setWetnessEnabledThisFrame()

> **setWetnessEnabledThisFrame**(`ped`): `void`

Enables the wetness of a ped for this frame.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setWetnessEnabledThisFrame(ped);
```

***

### setWetnessHeight()

> **setWetnessHeight**(`ped`, `height`): `void`

Sets the height of the wet area on a ped (how far up the body the water reaches).

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

##### height

`number`

The height as a float, in the game's units.

#### Returns

`void`

#### Example

```ts
mp.game.ped.setWetnessHeight(ped, 0.5);
```

***

### spawnpointsCancelSearch()

> **spawnpointsCancelSearch**(): `void`

Cancels the spawn-point search started by `spawnpointsStartSearch`.

#### Returns

`void`

#### Example

```ts
mp.game.ped.spawnpointsCancelSearch();
```

***

### spawnpointsGetNumSearchResults()

> **spawnpointsGetNumSearchResults**(): `Promise`\<`number`\>

The number of spawn points the search found.

#### Returns

`Promise`\<`number`\>

A Promise of the number of results as an integer.

#### Example

```ts
const count = await mp.game.ped.spawnpointsGetNumSearchResults();
```

***

### spawnpointsGetSearchResult()

> **spawnpointsGetSearchResult**(`randomInt`): `Promise`\<[`IVector3`](../../../common/interfaces/IVector3.md)\>

The position of a spawn point that the search found.

#### Parameters

##### randomInt

`number`

The index of the result to read, as an integer.

#### Returns

`Promise`\<[`IVector3`](../../../common/interfaces/IVector3.md)\>

A Promise of the spawn point as `{ x, y, z }` in metres.

#### Example

```ts
const { x, y, z } = await mp.game.ped.spawnpointsGetSearchResult(0);
```

***

### spawnpointsIsSearchActive()

> **spawnpointsIsSearchActive**(): `Promise`\<`boolean`\>

Whether the spawn-point search is active (running).

#### Returns

`Promise`\<`boolean`\>

A Promise of true while the search runs.

#### Example

```ts
const active = await mp.game.ped.spawnpointsIsSearchActive();
```

***

### spawnpointsIsSearchComplete()

> **spawnpointsIsSearchComplete**(): `Promise`\<`boolean`\>

Whether the spawn-point search is complete.

#### Returns

`Promise`\<`boolean`\>

A Promise of true when the search finished.

#### Example

```ts
const done = await mp.game.ped.spawnpointsIsSearchComplete();
```

***

### spawnpointsIsSearchFailed()

> **spawnpointsIsSearchFailed**(): `Promise`\<`boolean`\>

Whether the spawn-point search failed.

#### Returns

`Promise`\<`boolean`\>

A Promise of true when the search failed.

#### Example

```ts
const failed = await mp.game.ped.spawnpointsIsSearchFailed();
```

***

### spawnpointsStartSearch()

> **spawnpointsStartSearch**(`x`, `y`, `z`, `radius`, `zmax`, `interiorFlags`, `scale`, `duration`): `void`

Starts a search for a spawn point near a position.

#### Parameters

##### x

`number`

The centre's X coordinate, in metres.

##### y

`number`

The centre's Y coordinate, in metres.

##### z

`number`

The centre's Z coordinate, in metres.

##### radius

`number`

The search radius, in metres.

##### zmax

`number`

The highest height above the centre, in metres.

##### interiorFlags

`number`

The search's flags, as the game's integers (where it looks: indoors, outdoors ...).

##### scale

`number`

A scale of the search, as a float.

##### duration

`number`

The search's duration, as the game's integer.

#### Returns

`void`

#### Example

```ts
mp.game.ped.spawnpointsStartSearch(0, 0, 70, 100, 50, 0, 1.0, 1000);
```

***

### stopWeaponFiringWhenDropped()

> **stopWeaponFiringWhenDropped**(`ped`): `void`

Stops a ped's dropped weapon from firing.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`void`

#### Remarks

Partial: the game's call is an unnamed one that is only a candidate: not yet confirmed in the game.

#### Example

```ts
mp.game.ped.stopWeaponFiringWhenDropped(ped);
```

***

### wasKilledByStealth()

> **wasKilledByStealth**(`ped`): `Promise`\<`boolean`\>

Whether a ped was killed by a stealth attack.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true when the ped was stealth-killed.

#### Example

```ts
const stealth = await mp.game.ped.wasKilledByStealth(ped);
```

***

### wasKilledByTakedown()

> **wasKilledByTakedown**(`ped`): `Promise`\<`boolean`\>

Whether a ped was killed by a takedown.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true when the ped was killed by a takedown.

#### Example

```ts
const takedown = await mp.game.ped.wasKilledByTakedown(ped);
```

***

### wasKnockedOut()

> **wasKnockedOut**(`ped`): `Promise`\<`boolean`\>

Whether a ped was knocked out.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true when the ped was knocked out.

#### Example

```ts
const knockedOut = await mp.game.ped.wasKnockedOut(ped);
```

***

### wasSkeletonUpdated()

> **wasSkeletonUpdated**(`ped`): `Promise`\<`boolean`\>

Whether a ped's skeleton was updated on this frame.

#### Parameters

##### ped

`number` \| \{ `handle`: `number`; \}

The ped, or its handle.

#### Returns

`Promise`\<`boolean`\>

A Promise of true when the skeleton was updated.

#### Example

```ts
const updated = await mp.game.ped.wasSkeletonUpdated(ped);
```
