IS_SHOCKING_EVENT_IN_SPHERE
Returns true if a shocking event of type eventType exists within radius of the given coordinates.
Signature
BOOL IS_SHOCKING_EVENT_IN_SPHERE(Hash eventType, float x, float y, float z, float radius); // 0x9DB47E16060D6354 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | eventType | Hash |
| 2 | x | float |
| 3 | y | float |
| 4 | z | float |
| 5 | radius | float |
Facts
| Name | IS_SHOCKING_EVENT_IN_SPHERE |
|---|---|
| Hash | 0x9DB47E16060D6354 |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x9DB47E16060D6354, -- IS_SHOCKING_EVENT_IN_SPHERE
GetHashKey("name"), -- Hash eventType
0.0, -- float x
0.0, -- float y
0.0, -- float z
0.0 -- float radius
)
if result then
-- ...
end// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0x9DB47E16060D6354", // IS_SHOCKING_EVENT_IN_SPHERE
GetHashKey("name"), // Hash eventType
0.0, // float x
0.0, // float y
0.0, // float z
0.0, // float radius
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x9DB47E16060D6354, // IS_SHOCKING_EVENT_IN_SPHERE
(uint)API.GetHashKey("name"), // Hash eventType
0.0f, // float x
0.0f, // float y
0.0f, // float z
0.0f // float radius
);Related EVENT natives
- _CREATE_SHOCKING_EVENT
- _EVENT_FLUSH_ALL_EVENT_TRACKERS
- _EVENT_GET_RECENT_EVENT
- _EVENT_GET_SOURCE_ENTITY_FROM_EVENT
- _EVENT_GET_TARGET_ENTITY_FROM_EVENT
- _EVENT_GET_TIME_SINCE_EVENT
- _IS_EVENT_TRACKER_ACTIVE
- _REMOVE_ALL_SHOCKING_EVENTS_IN_AREA
- _REMOVE_ALL_SHOCKING_EVENTS_OF_TYPE_IN_AREA
- ADD_SHOCKING_EVENT_AT_POSITION
- ADD_SHOCKING_EVENT_FOR_ENTITY
- REMOVE_SHOCKING_EVENT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.