RedM Natives

_SET_OBJECT_INTERACTION_PRESET

Writes an interaction state/flags byte and sets an expiry.

Hash0xCAAF2BCCFEF37F77
Runtime nameSetObjectInteractionPreset
NamespaceOBJECT
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _SET_OBJECT_INTERACTION_PRESET(Object object, int presetFlags);

Parameters

NameTypeDescription
objectObject—
presetFlagsint—

Returns void

Description

Writes an interaction state/flags byte and sets an expiry.
Lower 3 bits = timeout preset: 0=none, 1=5s, 2=30s, 3=60s, 4=120s (5=custom, unused here).
Bits 3-5 = category (0-7). Bit 6 (0x40) = extra behavior flag.
Examples: https://pastebin.com/mwAi5iQY

Usage

Lua
SetObjectInteractionPreset(object, presetFlags)

-- always works, by hash
Citizen.InvokeNative(0xCAAF2BCCFEF37F77, object, presetFlags)
JavaScript and C#
JavaScript
SetObjectInteractionPreset(object, presetFlags);

// by hash
Citizen.invokeNative('0xCAAF2BCCFEF37F77', object, presetFlags);
C#
Function.Call((Hash)0xCAAF2BCCFEF37F77, object, presetFlags);
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.