как получить цвет?

Решение
Lua:
local sampev = require 'samp.events'

function sampev.onCreate3DText(id, color, position, distance, testLOS, attachedPlayerId, attachedVehicleId, text)
    text = text:gsub('%{(.{6})%}', '[%1]')
    print('Text of 3D Text:\n'..text)
end
выведет текст 3d текста, все цвета будут заключены в квадратные кавычки, ищи нужный тебе цвет

hanzohasani

Известный
Автор темы
124
38
Lua:
local sampev = require 'samp.events'

function sampev.onCreate3DText(id, color, position, distance, testLOS, attachedPlayerId, attachedVehicleId, text)
    text = text:gsub('%{(.{6})%}', '[%1]')
    print('Text of 3D Text:\n'..text)
end
выведет текст 3d текста, все цвета будут заключены в квадратные кавычки, ищи нужный тебе цвет