You may add to your tutorial, that for some labels, an additional text has to be requested & loaded.
For example, if I want to use any label from the mod_mnu.gxt2
I have to request it.
But before I check if the slot is free and if the additional text isn’t already loaded in the slot.
local CAT = 'mod_mnu'
local CurrentSlot = 0
while HasAdditionalTextLoaded(CurrentSlot) and not HasThisAdditionalTextLoaded(CAT, CurrentSlot) do
Citizen.Wait(0)
CurrentSlot = CurrentSlot + 1
end
If my additional text isn’t already loaded into this slot, I will clear it and load my additional text into it.
if not HasThisAdditionalTextLoaded(CAT, CurrentSlot) then
ClearAdditionalText(CurrentSlot, true)
RequestAdditionalText(CAT, CurrentSlot)
while not HasThisAdditionalTextLoaded(CAT, CurrentSlot) do
Citizen.Wait(0)
end
end
Thats it, now I am able to use the labels inside mod_mnu.gxt2