- 147
- 34
- Версия MoonLoader
- .026-beta
[ML] (error) GHA: ...top\mcline red gta [REBUILT]\moonloader\osnova_1 (1).lua:1597: attempt to index upvalue 'avtonazatietwo' (a boolean value)
stack traceback:
...top\mcline red gta [REBUILT]\moonloader\osnova_1 (1).lua:1597: in function 'callback'
...ne red gta [REBUILT]\moonloader\lib\samp\events\core.lua:79: in function <...ne red gta [REBUILT]\moonloader\lib\samp\events\core.lua:53>
1597 if avtonazatietwo.v and (textd:find("*** Дом продается ***") or textd:find("Бизнес продается")) then
stack traceback:
...top\mcline red gta [REBUILT]\moonloader\osnova_1 (1).lua:1597: in function 'callback'
...ne red gta [REBUILT]\moonloader\lib\samp\events\core.lua:79: in function <...ne red gta [REBUILT]\moonloader\lib\samp\events\core.lua:53>
1597 if avtonazatietwo.v and (textd:find("*** Дом продается ***") or textd:find("Бизнес продается")) then
код:
function hook.onCreate3DText(i, clr, pos, distance, ignoreWalls, playerId, vehicleId, textd)
if avtonazatietwo.v and (textd:find("*** Дом продается ***") or textd:find("Бизнес продается")) then
lua_thread.create(function()
wait (waitavtonazatietwo.v)
local _, myId = sampGetPlayerIdByCharHandle(PLAYER_PED)
local data = allocateMemory(68)
sampStorePlayerOnfootData(myId, data)
setStructElement(data, 36, 1, 128, false)
sampSendOnfootData(data)
freeMemory(data)
end)
end
end