function main()
repeat wait(0) until isSampAvailable()
sampRegisterChatCommand('pizdatebe', function(id)
if id:match('(%d+)') then
id = tonumber(id)
_, car = sampGetCarHandleBySampVehicleId(id)
if _ then
go = true
end
end
end)
while true do wait(0)
if go then
sampSendEnterVehicle(car, false)
for _ = 1, 3 do wait(15)
sampForceVehicleSync(car)
end
h = getCarHealth(car)
for _ = 1, getCarHealth(car)/1.2 do wait(1)
h = h - 1
setCarHealth(car, h)
sampForceVehicleSync(car)
end
sampSendExitVehicle(id)
for _ = 1, 3 do
sampForceOnfootSync()
end
go = false
end
end
end