function main()
while not isSampAvailable() do wait(0) end
sampRegisterChatCommand('cmd',function(arg)
idcar = string.match(arg,'(%d+)')
if tonumber(idcar) then
idcar = tonumber(idcar)
_, car = sampGetCarHandleBySampVehicleId(idcar)
sampAddChatMessage(_ and 'Good' or 'not Good',-1)
if _ then
setCarHealth(car,1000)
end
end
end)
wait(-1)
end