RedM Natives

_UI_PROMPT_SET_TRANSPORT_MODE

TM_ON_FOOT, TM_IN_VEHICLE

Hash0x876E4A35C73A6655
Runtime nameUiPromptSetTransportMode
NamespaceHUD
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _UI_PROMPT_SET_TRANSPORT_MODE(Prompt prompt, int mode);

Parameters

NameTypeDescription
promptPrompt—
modeint—

Returns void

Description

TM_ANY = 0,
TM_ON_FOOT,
TM_IN_VEHICLE

Usage

Lua
UiPromptSetTransportMode(prompt, mode)

-- always works, by hash
Citizen.InvokeNative(0x876E4A35C73A6655, prompt, mode)
JavaScript and C#
JavaScript
UiPromptSetTransportMode(prompt, mode);

// by hash
Citizen.invokeNative('0x876E4A35C73A6655', prompt, mode);
C#
Function.Call((Hash)0x876E4A35C73A6655, prompt, mode);
  • 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.