Is there somehow I can correct the button not pushing the other data slot so far away?
Can you show us the code you are using?
Of course!
var sc = new Scaleform("instructional_buttons");
sc.CallFunction("CLEAR_ALL");
sc.CallFunction("TOGGLE_MOUSE_BUTTONS", 0);
sc.CallFunction("CREATE_CONTAINER");
sc.CallFunction("SET_DATA_SLOT", 1, "t_E", "Press");
sc.CallFunction("SET_DATA_SLOT", 0, "", "to interact");
sc.CallFunction("DRAW_INSTRUCTIONAL_BUTTONS", -1);
sc.Render2D();
Bump <3
bump m2s
I’m pretty sure you can’t.
Pretty sure too. Instructional buttons aren’t meant to be used like that. You can rephrase it by writing : “To interact press X”.
Look at how they are doing it? There are decompiled scripts lying around, take a look there and rebuild the scaleform.
I can’t find the script for smoking the bong and I don’t know other scripts where it’d be
Oh, that’s true. I guess they draw thoose a completely different way. May be interesting how they handle help text.
Why do you want to do this with scaleforms anyways? You can achieve the exact same result you are looking for by using natives, which pretty much everyone else is using and you avoid that annoying space.
BeginTextCommandDisplayHelp("STRING")
AddTextComponentSubstringPlayerName("Press ~INPUT_PICKUP~ to smoke the bong")
EndTextCommandDisplayHelp(0, false, true, 6000)
I haven’t tested this, should work or you can find other examples to try it yourself.
That’s exactly what I was looking for, thanks!