The Lab
MISC native

VAR_STRING

returns const char*1 param + variadicbuild 1207

Builds a formatted text string from a format and the extra arguments, using flags to select the string type. Returns the resulting string.

Commonly used to create literal strings for prompts and on-screen text.

Signature

C
const char* VAR_STRING(int flags, ...); // 0xFA925AC00EB830B9 b1207

Parameters

#NameType
1flagsint
2...variadic

Facts

Facts about VAR_STRING
Name
VAR_STRING
Hash
0xFA925AC00EB830B9
Namespace
Returns
const char*
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0xFA925AC00EB830B9, -- VAR_STRING
  0, -- int flags
  -- ... (variadic: pass extra arguments here)
  Citizen.ResultAsString()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0xFA925AC00EB830B9", // VAR_STRING
  0, // int flags
  // ... (variadic: pass extra arguments here)
  Citizen.resultAsString()
);
console.log(result)
C#
string result = Function.Call<string>((Hash)0xFA925AC00EB830B9, // VAR_STRING
  0 // int flags
  // ... (variadic: pass extra arguments here)
);
All MISC natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.