FireClient

getOwnerOfExplosionInAngledArea

GET_OWNER_OF_EXPLOSION_IN_ANGLED_AREA0x14BA4BA137AF6CEC

The GTA V native GET_OWNER_OF_EXPLOSION_IN_ANGLED_AREA of the FIRE namespace, as LS:MP client scripts call it: the global function getOwnerOfExplosionInAngledArea, in JavaScript and in Lua.

SignatureJavaScript
getOwnerOfExplosionInAngledArea(
  explosionType: number,
  x1: number,
  y1: number,
  z1: number,
  x2: number,
  y2: number,
  z2: number,
  radius: number
): Entity
SignatureLua
getOwnerOfExplosionInAngledArea(
  explosionType: integer,
  x1: number,
  y1: number,
  z1: number,
  x2: number,
  y2: number,
  z2: number,
  radius: number
): Entity

Usage

JavaScript
const entity = getOwnerOfExplosionInAngledArea(explosionType, x1, y1, z1, x2, y2, z2, radius);
Lua
local entity = getOwnerOfExplosionInAngledArea(explosionType, x1, y1, z1, x2, y2, z2, radius)

Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.

JavaScript · with vectors
const entity = getOwnerOfExplosionInAngledArea(explosionType, pos1, pos2, radius);
Lua · with vectors
local entity = getOwnerOfExplosionInAngledArea(explosionType, pos1, pos2, radius)

Parameters

ParameterTypeJavaScriptLuaDescription
explosionTypeintnumberintegerSee addExplosion.
x1floatnumbernumber
y1floatnumbernumber
z1floatnumbernumber
x2floatnumbernumber
y2floatnumbernumber
z2floatnumbernumber
radiusfloatnumbernumber

Returns

Entity JavaScript number, Lua integer

Game handle of an entity: a ped, a vehicle or an object. Not an LS:MP netId. Convert one with lsmp.getEntityFromNetId.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Returns a handle to the first entity within the a circle spawned inside the 2 points from a radius.

Reference

Namespace
Fire FIRE
In the game
Entity GET_OWNER_OF_EXPLOSION_IN_ANGLED_AREA(int explosionType, float x1, float y1, float z1, float x2, float y2, float z2, float radius)
Hash
0x14BA4BA137AF6CEC
Formerly
_GET_PED_INSIDE_EXPLOSION_AREA _GET_ENTITY_INSIDE_EXPLOSION_AREA

Open in the interactive natives reference