- 380
- 173
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
- Версия MoonLoader
- Другое
почему выводит 0, даже когда по идеи корды должны записаться?
Lua:
local hui = {
qy = 0,
qx = 0
}
function onRunCommand(cmd)
if cmd == "!test" then
print(hui.qx.. 'and'..hui.qy)
return false
end
end
function sampev.onCreate3DText(id, color, pos, distance, testLOS, attachedPlayerId, attachedVehicleId, text)
local xe,ye,ze = getPosition()
local qxer = math.floor(tonumber(pos.x))
local qyer = math.floor(tonumber(pos.y))
if text:find('10 из 10') then
print('hook')
--table.insert(hui, qx,qy)
table.insert(hui, {
qx = qxer,
qy = qyer
})
end