RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. _REQUEST_PED_CARRYING_STATE

_REQUEST_PED_CARRYING_STATE

Return the status of the wanted carrying action of a ped. unk3 is usually 4.You can also get the entity being carried and the entity it was taken from with a buffer. Status: `INVALID = 0, STARTING = 1, PROGRESSING = 2, FINISHING = 3` CARRYING TYPES: `UNK_0 = -1, UNK_1 = 0, UNK_2 = 1, UNK_3 = 2, UNK_4 = 3, CARRYING_FROM_GROUND = 4, CARRYING_FROM_MOUNT = 5, PUTTING_DOWN_GROUND = 6, PUTTING_DOWN_MOUNT = 7, UNK_9 = 8, UNK_10 = 9, UNK_11 = 10` Filters: `ENTITY_ONLY = 0, NOTHING = 1, ENTITY_AND_TAKEN_FROM_ENTITY = 2`

PEDBuild 1207

Signature

lua
RequestPedCarryingState(PlayerPedId(), 0, outEntities, 0, 0)
-- returns int

Parameters

NameTypeDescription
Ped—
int—
int*—
int—
int—

Usage

Named call
RequestPedCarryingState(PlayerPedId(), 0, outEntities, 0, 0)
InvokeNative
Citizen.InvokeNative(0x4642182A298187D0, PlayerPedId(), 0, outEntities, 0, 0)
lua 1
local retval, entity = Citizen.InvokeNative(0x4642182A298187D0, PlayerPedId(), 1, Citizen.PointerValueInt(), 4, 0, Citizen.ResultAsInteger())
local struct = DataView.ArrayBuffer(2*8)
local retval = Citizen.InvokeNative(0x4642182A298187D0, PlayerPedId(), 5, struct:Buffer(), 4, 2, Citizen.ResultAsInteger())
if retval ~= 0 then
local entity = struct:GetInt32(0*8)
local fromEntity = struct:GetInt32(1*8)
end

Details

Hash
Source
VORPCORE/RDR3natives

Source: VORPCORE/RDR3natives

On this page

  • Signature
  • Parameters
  • Usage
  • Details