diff --git a/LemonUI/Scaleform/InstructionalButton.cs b/LemonUI/Scaleform/InstructionalButton.cs index 751b15a..7f86948 100644 --- a/LemonUI/Scaleform/InstructionalButton.cs +++ b/LemonUI/Scaleform/InstructionalButton.cs @@ -67,7 +67,24 @@ public Control Control /// public string Raw { - get => raw; + get + { + if ((int)control == -1) + { + return raw; + } +#if FIVEM + return API.GetControlInstructionalButton(2, (int)control, 1); +#elif RAGEMP + return Invoker.Invoke(Natives.GetControlInstructionalButton, 2, (int)control, 1); +#elif RPH + return (string)NativeFunction.CallByHash(0x0499D7B09FC9B407, typeof(string), 2, (int)control, 1); +#elif SHVDN3 || SHVDNC + return Function.Call(Hash.GET_CONTROL_INSTRUCTIONAL_BUTTONS_STRING, 2, (int)control, 1); +#elif ALTV + return Alt.Natives.GetControlInstructionalButtonsString(2, (int)control, true); +#endif + } set { raw = value ?? throw new ArgumentNullException(nameof(value));