Community Forum

renderDoubleText

Forum Overview >> Scripting

CategoryScripting
Created12.08.2023 22:09


Brandon Reaman (BJR1984) 12.08.2023 22:09
scripts/liquidlime.lua:229: attempt to call global 'renderDoubleText' (a nil value)

Full Code
https://github.com/BJR1984/FS22_LiquidLime/blob/main/scripts/liquidlime.lua

I coped the code from ExtendedSprayerHUDExtension:draw and got the aforementioned error.

code snippet

226 setTextColor(unpack(self.uiTextColor))
227 setTextBold(true)
228 setTextAlignment(RenderText.ALIGN_CENTER)
229 renderDoubleText(centerX, upperPosY - self.textHeightHeadline * 1.1, self.textHeightHeadline, headline)
230 setTextBold(false)

Tobias F (JD6930) 21.08.2023 10:10
renderDoubleText is no global function.


Note: Log in to post. Create a new account here.