VAR_STRING
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
const char* VAR_STRING(int flags, ...); // 0xFA925AC00EB830B9 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | flags | int |
| 2 | ... | variadic |
Facts
| 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.
local result = Citizen.InvokeNative(0xFA925AC00EB830B9, -- VAR_STRING
0, -- int flags
-- ... (variadic: pass extra arguments here)
Citizen.ResultAsString()
)
print(result)const result = Citizen.invokeNative("0xFA925AC00EB830B9", // VAR_STRING
0, // int flags
// ... (variadic: pass extra arguments here)
Citizen.resultAsString()
);
console.log(result)string result = Function.Call<string>((Hash)0xFA925AC00EB830B9, // VAR_STRING
0 // int flags
// ... (variadic: pass extra arguments here)
);Related MISC natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.