local pos = {}
function onRecvRpc(id, data, size)
if id == 44 then
local bs = bitStreamInit(data, size)
local objId = bitStreamReadWord(bs)
if objId == 864 then
bitStreamSetReadOffset(bs, 6)
pos = { x = bitStreamReadFloat(bs), y = bitStreamReadFloat(bs), z = bitStreamReadFloat(bs) }
end
bitStreamDelete(bs)
end
end
-- в твоем коде где угодно:
if pos.x ~= nil then
-- любые действия с координатами pos.x pos.y pos.z
end