GET_VISUAL_SETTING_FLOAT
A getter for SET_VISUAL_SETTING_FLOAT.
Signature
float GET_VISUAL_SETTING_FLOAT(char* name);Parameters
| Name | Type | Description |
|---|---|---|
name | char* | The name of the value to get, such as |
Returns float — Returns the floating point value of the specified visual setting on success.
Description
A getter for SET_VISUAL_SETTING_FLOAT.
Usage
local retval = GetVisualSettingFloat(name)
-- always works, by hash
local retval = Citizen.InvokeNative(0x15346b4d, name, Citizen.ResultAsFloat())JavaScript and C#
const retval = GetVisualSettingFloat(name);
// by hash
const retval = Citizen.invokeNative('0x15346b4d', name, Citizen.returnResultAnyway(), Citizen.resultAsFloat());float retval = Function.Call<float>((Hash)0x15346b4d, name);See also
SET_VISUAL_SETTING_FLOATOverrides a floating point value from visualsettings.dat temporarily.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.