_ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET_AT_COORDS
Adds an "interactive focus mode preset" between a player and a specific set of coordinates with a target entity.
0xD48227263E3D06AEAddAmbientPlayerInteractiveFocusPresetAtCoordsSignature
void _ADD_AMBIENT_PLAYER_INTERACTIVE_FOCUS_PRESET_AT_COORDS(Player player, float x1, float y1, float z1, const char* preset, float x2, float y2, float z2, Entity targetEntity, const char* name);Parameters
| Name | Type | Description |
|---|---|---|
player | Player | — |
x1 | float | — |
y1 | float | — |
z1 | float | — |
preset | const char* | — |
x2 | float | — |
y2 | float | — |
z2 | float | — |
targetEntity | Entity | — |
name | const char* | — |
Returns void
Description
Adds an "interactive focus mode preset" between a player and a specific set of coordinates with a target entity.
To access all available presets, refer to the file located at:\update_1.rpf\common\data\interactive_focus_mode_presets.meta
Related function:
- _DISABLE_PLAYER_INTERACTIVE_FOCUS_PRESET (0xC67A4910425F11F1)
Video: https://imgur.com/gallery/0xd48227263e3d06ae-SUJhMoA
Adds an interactive focus mode preset between a player and a specific set of coordinates with a target entity.
To access all available presets, refer to the file located at:update_1.rpf.common.data.interactive_focus_mode_presets.meta
Usage
AddAmbientPlayerInteractiveFocusPresetAtCoords(player, x1, y1, z1, preset, x2, y2, z2, targetEntity, name)
-- always works, by hash
Citizen.InvokeNative(0xD48227263E3D06AE, player, x1, y1, z1, preset, x2, y2, z2, targetEntity, name)JavaScript and C#
AddAmbientPlayerInteractiveFocusPresetAtCoords(player, x1, y1, z1, preset, x2, y2, z2, targetEntity, name);
// by hash
Citizen.invokeNative('0xD48227263E3D06AE', player, x1 + 0.0000001, y1 + 0.0000001, z1 + 0.0000001, preset, x2 + 0.0000001, y2 + 0.0000001, z2 + 0.0000001, targetEntity, name);Function.Call((Hash)0xD48227263E3D06AE, player, x1, y1, z1, preset, x2, y2, z2, targetEntity, name);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason. - The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Examples
AddPlayerInteractiveFocusPresetAtCoords(PlayerId(),GetEntityCoords(PlayerPedId()),'ForcedILONoIcon',0.0,0.0,0.0,PlayerPedId(),'text')Sources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.