_SET_OBJECT_INTERACTION_PRESET
Writes an interaction state/flags byte and sets an expiry.
Hash
0xCAAF2BCCFEF37F77Runtime name
SetObjectInteractionPresetNamespaceOBJECT
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _SET_OBJECT_INTERACTION_PRESET(Object object, int presetFlags);Parameters
| Name | Type | Description |
|---|---|---|
object | Object | — |
presetFlags | int | — |
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
SetObjectInteractionPreset(object, presetFlags)
-- always works, by hash
Citizen.InvokeNative(0xCAAF2BCCFEF37F77, object, presetFlags)JavaScript and C#
SetObjectInteractionPreset(object, presetFlags);
// by hash
Citizen.invokeNative('0xCAAF2BCCFEF37F77', object, presetFlags);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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.