function onScriptUpdate()
if rep then
local ok = fillBitStream(getBotState())
if ok then
sendPacket(getBotState() == 1 and bitstream.onfoot or getBotState() == 2 and bitstream.incar)
setPosition(packet[counter].x, packet[counter].y, packet[counter].z)...