TriggerEvent('chat:addMessage', { args = { ('Coordinates: X: %.2f, Y: %.2f, Z: %.2f, H: %.2f'):format(x, y, z, heading) } })
Alternately, ('...'):format(...) is equivalent to string.format('...', ...).
See also the documentation on string.format.
1 Like