RDR3 matchUnofficial name
EVENT::_EVENT_GET_SOURCE_ENTITY_FROM_EVENT
0x315A427E7DD5FFE4 ·RVA 0x03C084B0
Signature
Entity _EVENT_GET_SOURCE_ENTITY_FROM_EVENT(
Entity entity,
Hash eventType,
int p2,
int p3
);
The scripts pass 5 values to this native; the decoded signature lists 4 (arguments the game doesn't read are left out).
Parameters 4
| # | Type | Name | Notes |
|---|---|---|---|
| 0 | Entity | entity |
– |
| 1 | Hash | eventType |
– |
| 2 | int | p2 |
– |
| 3 | int | p3 |
– |
Returns
Entity
Call it
// EVENT::_EVENT_GET_SOURCE_ENTITY_FROM_EVENT
auto result = invoke<Entity>(0x315A427E7DD5FFE4, entity, eventType, p2, p3);// EVENT::_EVENT_GET_SOURCE_ENTITY_FROM_EVENT
int result = Function.Call<int>((Hash)0x315A427E7DD5FFE4, entity, eventType, p2, p3);-- EVENT::_EVENT_GET_SOURCE_ENTITY_FROM_EVENT
local result = Citizen.InvokeNative(0x315A427E7DD5FFE4, entity, eventType, p2, p3)// EVENT::_EVENT_GET_SOURCE_ENTITY_FROM_EVENT
const result = Citizen.invokeNative("0x315A427E7DD5FFE4", entity, eventType, p2, p3);Generic call-by-hash templates in the style of the common GTA V / RDR2 script frameworks. Adapt the types to your tooling.
Improve this page
Know what this native does, a better name, or the real parameter types? Suggest an edit. A moderator reviews every suggestion, and approved edits credit you here.