_UI_PROMPT_SET_TRANSPORT_MODE
TM_ON_FOOT, TM_IN_VEHICLE
Hash
0x876E4A35C73A6655Runtime name
UiPromptSetTransportModeNamespaceHUD
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _UI_PROMPT_SET_TRANSPORT_MODE(Prompt prompt, int mode);Parameters
| Name | Type | Description |
|---|---|---|
prompt | Prompt | — |
mode | int | — |
Returns void
Description
TM_ANY = 0,
TM_ON_FOOT,
TM_IN_VEHICLE
Usage
UiPromptSetTransportMode(prompt, mode)
-- always works, by hash
Citizen.InvokeNative(0x876E4A35C73A6655, prompt, mode)JavaScript and C#
UiPromptSetTransportMode(prompt, mode);
// by hash
Citizen.invokeNative('0x876E4A35C73A6655', prompt, mode);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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.