function main()
while not isSampAvailable() do wait(0) end
sampRegisterChatCommand('takep', take)
while true do
wait(0)
end
end
function take(id)
if doesPickupExist(id) then
sampSendPickedUpPickup(id)
else
sampAddChatMessage('Пикапа нет', -1)
end
end