sampRegisterChatCommand("carid", function(id)
local _, char = sampGetCharHandleBySampPlayerId(id)
if _ then
if isCharInAnyCar() then
local car = storeCarCharIsInNoSave(char)
local res, carid = sampGetVehicleIdByCarHandle(car)
if res then
sampAddChatMessage("Серверный ID автомобиля - "..carid, -1)
local model = getCarModel(car)
sampAddChatMessage("ID автомобиля - "..model)
end
end
end)