PedClient

getCanPedBeGrabbedByScript

GET_CAN_PED_BE_GRABBED_BY_SCRIPT0x03EA03AF85A85CB7

The GTA V native GET_CAN_PED_BE_GRABBED_BY_SCRIPT of the PED namespace, as LS:MP client scripts call it: the global function getCanPedBeGrabbedByScript, in JavaScript and in Lua.

SignatureJavaScript
getCanPedBeGrabbedByScript(
  ped: Ped,
  p1: boolean,
  p2: boolean,
  p3: boolean,
  p4: boolean,
  p5: boolean,
  p6: boolean,
  p7: boolean,
  p8: any
): boolean
SignatureLua
getCanPedBeGrabbedByScript(
  ped: Ped,
  p1: boolean,
  p2: boolean,
  p3: boolean,
  p4: boolean,
  p5: boolean,
  p6: boolean,
  p7: boolean,
  p8: any
): boolean

Usage

JavaScript
const result = getCanPedBeGrabbedByScript(ped, p1, p2, p3, p4, p5, p6, p7, p8);
Lua
local result = getCanPedBeGrabbedByScript(ped, p1, p2, p3, p4, p5, p6, p7, p8)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
p1BOOLbooleanboolean
p2BOOLbooleanboolean
p3BOOLbooleanboolean
p4BOOLbooleanboolean
p5BOOLbooleanboolean
p6BOOLbooleanboolean
p7BOOLbooleanboolean
p8Anyanyany

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Ped PED
In the game
BOOL GET_CAN_PED_BE_GRABBED_BY_SCRIPT(Ped ped, BOOL p1, BOOL p2, BOOL p3, BOOL p4, BOOL p5, BOOL p6, BOOL p7, Any p8)
Hash
0x03EA03AF85A85CB7

Open in the interactive natives reference