RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. _GET_PEDS_DAMAGED_BY_PLAYER_RECENTLY

_GET_PEDS_DAMAGED_BY_PLAYER_RECENTLY

it is used to check for that period of time if player damaged any peds only returns the last 3 hits with the entity ids so if you hit the same entity 3 times it will return the same entity id 3 times, if you hit 4 different entities within that time it will return the last 3 entity ids only stores the last 3 hits in the data view buffer duration is in miliseconds you need dataview

PLAYERBuild 1207

Signature

lua
GetPedsDamagedByPlayerRecently(PlayerId(), 0, struct)
-- returns BOOL

Parameters

NameTypeDescription
Player—
int—
Any*—

Usage

Named call
GetPedsDamagedByPlayerRecently(PlayerId(), 0, struct)
InvokeNative
Citizen.InvokeNative(0x1A6E84F13C952094, PlayerId(), 0, struct)
lua 1
Citizen.InvokeNative(0x1A6E84F13C952094, PlayerId(), 10000, dataView:Buffer())
local entity = dataView:GetInt32(8 * 1)
local entity2 = dataView:GetInt32(8 * 2)
local entity3 = dataView:GetInt32(8 * 3)
print(entity, entity2, entity3)

Details

Hash
Source
VORPCORE/RDR3natives

Source: VORPCORE/RDR3natives

On this page

  • Signature
  • Parameters
  • Usage
  • Details