if tab == 1 then
if imgui.Button(u8' Авто принятие в семью', imgui.ImVec2(-1, 25)) then
lua_thread.create(function()
local mx, my, mz = getCharCoordinates(playerPed)
for id = 0,1000 do
_, handle = sampGetCharHandleBySampPlayerId(id)
if _ then
local x, y, z = getCharCoordinates(handle)...