Converting a ESX script to QBCore ESX.Math.Trim

Im trying to convert a esx script to qbcore…but im hung on a line that dont have a conversion for qbcore which is ESX.Math.Trim…What could I do to convert it?

ESX.Math.Trim removes whitespace from a string, mainly used for license plates. A good alternative would be using sub and gsub.

str = str:gsub("%s+", "")
1 Like

What would be really nice would be a program that converts esx to qbcore

4 Likes

You could try:
QBCore.Functions.MathTrim